SSP: A Simple and Safe Prompt Engineering for Visual Generation

Prompt engineering aims to adapt an AI foundation model on the token level without weight updating. Recently, with the development of visual models, many researchers have begun to study visual generation quality improvement using prompt engineering. However, while those studies mainly aim to improve visual quality, they overlook the safe factors in prompts. We find that adding specific camera descriptions not only prevents these issues but also enhances visual quality. Consequently, we propose a simple and safe prompt engineering method (SSP) to improve visual generation quality by providing optimal camera descriptions. Specifically, we create a dataset from multi-datasets as original prompts. To select the optimal camera, we design an optimal camera matching approach and implement a classifier for original prompts capable of automatically matching. Appending camera descriptions to original prompts generates optimized prompts for further visual generation. Experiments demonstrate that SSP improves semantic consistency by an average of 16 % compared to others and safety metrics by 35.8%.

Authors

Institutions

Publication Details

Published
2024-10-06
DOI
https://doi.org/10.1109/smc54092.2024.10832083
Primary Topic
Embedded Systems Design Techniques
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

SSP: A Simple and Safe Prompt Engineering for Visual Generation

Jiawen Deng, Weijin Cheng, Jianzhi Liu, Ziyun Jiao et al.
Embedded Systems Design Techniques
article

SSP: A Simple and Safe Prompt Engineering for Visual Generation

Jiawen Deng, Weijin Cheng, Jianzhi Liu, Ziyun Jiao, Fuji Ren
article en

Abstract

Prompt engineering aims to adapt an AI foundation model on the token level without weight updating. Recently, with the development of visual models, many researchers have begun to study visual generation quality improvement using prompt engineering. However, while those studies mainly aim to improve visual quality, they overlook the safe factors in prompts. We find that adding specific camera descriptions not only prevents these issues but also enhances visual quality. Consequently, we propose a simple and safe prompt engineering method (SSP) to improve visual generation quality by providing optimal camera descriptions. Specifically, we create a dataset from multi-datasets as original prompts. To select the optimal camera, we design an optimal camera matching approach and implement a classifier for original prompts capable of automatically matching. Appending camera descriptions to original prompts generates optimized prompts for further visual generation. Experiments demonstrate that SSP improves semantic consistency by an average of 16 % compared to others and safety metrics by 35.8%.

University of Electronic Science and Technology of China (CN)
National Natural Science Foundation of China
Industry, innovation and infrastructure
Openalex Percentile: Top 71%
Embedded Systems Design Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.