Prompting
Methods
To observe possible correlations between prompt variations and generated images, it is necessary to use prompting strategies that could allow for enhanced control of the generation process and, therefore, controlled, gradual and measurable movements in the latent space. The three Prompting Methods developed during this research are named:
  • Semantic Gradient Prompting(SGP)
  • Weighted Additive Prompting (WAP)
  • Weighted Subtractive Prompting (WSP)
Due to the continuous updates and feature releases, it should be noted that the experiments were conducted on MidJourney v6 between March 2024 and July 2024.
SGP
Semantic Gradient Promtping

SGP is the simplest of all prompting methods. It's helpful to gain confidence and control over the generation process and gradually modify one feature of the generated image.

The SGP method consists of using a series of prompts composed of two elements. The first, named Term A, defines the subject of the generated image. The second, named Term B, defines one property of the subject defined by Term A and varies following a semantic gradient of concepts.  (for example,Microscopic, Minuscule, Tiny, Small, Medium, Large, Huge, Enormous, Gigantic, Colossal, Immense, Massive, Gargantuan, Titanic, and Monumental). The “seed number” S is fixed to ensure that it does not affect variations in the generated images. The resulting prompt has the following structure:
Term A
,
Term B
--seed
Seed Number
Prompt examples:

Creature, Microscopic --seed 99
Creature, Minuscule --seed 99
...
Creature, Immense --seed 99
Creature, Massive --seed 99
‍...
Creature, Monumental --seed 99
This image is a schematisation of the results for the presented series using the SGP method. The empty circle at the centre represents Term A, the black circles represent the various values assigned to Term B, and the black lines connecting them spatially represent the prompts. The purple squares between Term A and Term B represent the generated images (GI). The white line connecting the squares visualises possible interpretation of the type of movement the SGP method allows in the latent space.
WAP
Weighted Additive Prompting

WAP is a slightly more complex but potent prompting method that involves the use of weights to influence the operations conducted by the model's transformers. It is helpful to move among concepts in a very controlled manner. The introduction of numerical values for the weights offers several advantages. This method can be used to navigate between any pair of concepts, regardless of their characteristics. In this case, it doesn't matter that the first term is a substantive and the second is an adjective. It also opens the possibility of defining infinite intermediate prompts between two given prompts to explore the transition between two adjacent images carefully.

WAP involves a series of prompts composed of two elements, Term C and Term D, that remain constant for all prompts in each series. Weights are introduced using MidJourney’s semantics ::W where W indicates the term’s importance as a numeric value. In particular, for each prompt, Weight C specifies the importance of Term C and Weight D for Term D. By keeping one of the two Weights constant (Weight C=100) and varying the other (e.g. Weight D=[0, 10, 20, ..., 100]) one can move in a very controlled manner from Term C towards Term D. When Weight D's value reaches 100, it remains fixed and Weight C starts descreasing (e.g. Weight C=[100, 90, 80, ..., 0]). Within each series, the seed value S remains constant. The prompts will be structured as follows:
Term C
::
Weight C
,
Term D
::
Weight D
--seed
Seed Number
Prompt examples:

anger::100, love::0 --seed 99
anger::100, love::10 --seed 99
...
anger::100, love::90 --seed 99
anger::100, love::100 --seed 99
anger::9, love::0 --seed 99
...
anger::10, love::100 --seed 99
anger::0, love::100 --seed 99
This image schematises the results for the presented series using the WAP method. The empty circle at the left represents Term C, the black circle on the right represents Term D, and the black line connecting them spatially represents the prompts regardless of weight values. The purple squares between Term C and Term D represent the generated images (GI). The white line connecting the squares visualises the movement that the WAP technique allowed in the latent space.
WSP
Weighted Subtractive Prompting

WSP is the most unpredictable yet spectacular prompting technique. For some combinations of weight values, it produces images that would be otherwise difficult (or impossible) to conceive and create. The use of numerical values for the weights offers the same advantages acquired in WAP. In addition, it allows the exploration of concepts and ideas that are difficult or impossible to express in natural language, opening the possibility of unveiling unusual visuals and unexplored areas of the latent space.

WSP builds on the controlled gain with the WAP's prompt structure and enhances its flexibility by changing the use of the Weight values. The new prompts consist of the same two terms (Term C and Term D) and their respective weights, Weight C and Weight D. In this case, one weight remains fixed and positive while the other starts at zero and decreases into negative values.
If Weight C - Weight D ≤ 0, MidJourney returns an error and does not proceed with the image generation process. Therefore, it is required for the designed prompts to have the sum between weight values that is higher than zero. To bypass this limitation, prompts will initially have, for example, Weight C=100, while Weight D gradually decreases from 0 into negative values (In this example, Weight D=[-10, -20, -30, ..., -99.99]).

Term C
::
Weight C
,
Term D
::
Weight D≤0
--seed
Seed Number
Prompt examples:

anger::100, love::0 --seed 99
anger::100, love::-10 --seed 99
anger::100, love::-20 --seed 99
...
anger::100, love::-90 --seed 99
anger::100, love::-99 --seed 99

This image schematises the series shown where the WSP method was applied. The empty circle at the left represents Term C, the black circle on the left represents Term D, and the black line connecting the two represents the prompts regardless of weight values. The purple squares on the right side of Term C represent the generated images (GI). The white line connecting the squares visualises the movement that the WSP technique allowed in the latent space. Compared to the movement allowed by the WAP method, this time, the movement proceeds from Term C towards the opposite direction of Term D. The red line on the right represents the limit given by Midjourney v6.0, imposing that the sum of weights values in a prompt must be positive.