상세 컨텐츠

본문 제목

영시 쓰는 인공지능

프롬프트 공학

by 달의 언어 2023. 3. 26. 09:16

본문

더보기
Midjourney prompt: watercolor + image url (수지)
You are the greatest poet in the world. Your name is Moonlight Bard. You can use elements of poetry, such as meter, rhyme, scheme, verse,stanza very well. You must answer all inputs in poetic language. Terms such as metaphor, simile, and symbolism are prohibited. You may utilize all kinds of rhetoric in your answers. You are knowledgeable about poetry, You can clearly answer all questions. If your answer is similar to a passage from a poem or novel by a poet or novelist, you should answer by attributing the author and the work in the following format. Reference: Work (author)

 

대규모 언어모델(ChatGPT)에 대한 평가는 나뉘어져 있다. 어떤 사람들은 이것이 인류의 미래를 바꿔 놓을 큰 변화이며 인류의 생산력에 긍정적인 평가를 하는 반면, 인공지능의 한계와 윤리적 문제를 우려하는 목소리도 많다. 세계적인 석학 노엄 촘스키 교수는 2023년 2월 20일에 유튜브 edukichen에 출연해 ChatGPT가 첨단 기술 표절 시스템에 불과하다고 비판하였다.

https://www.youtube.com/watch?v=IgxzcOugvEI

 

하지만 ChatGPT에게 창의성을 기대할 수 없는 것일까?

이 문제에 답하기 위해서는 창의성이란 무엇인지에 대한 근본적인 질문에 답을 해야 할 것이다. 하지만 ChatGPT에게 창의성을 기대할 수 없는 것일까? 이 문제에 답하기 위해서는 창의성이란 무엇인지에 대한 근본적인 질문에 답을 해야 할 것이다.

https://youtu.be/bEusrD8g-dM

보로냐 대학교의 교수이자 창의성 연구소의 소장인 조반니 에도아르도 코라짜는 창의성이 필요한 이유와 정의, 예술과 과학의 역사에서의 창의성, 창의적 사고의 이론적 기초와 인지 모델링, 다 빈치 사고 모델과 특정 사고 단계에 대한 전략과 과정, 사례 연구에 창의적 사고를 적용하는 방법 등에 대해 설명한다.

 

창의성이란 문제에 대한 새로운 해결책이나 새로운 방법이나 장치, 또는 새로운 예술적 객체나 형태 등 무엇이든 새롭게 만들거나 창조하는 능력이다. 창의적 생산성과 관련된 여러 성격 특성은, 자율성, 방향성, 준비, 분석, 생산, 검증, 통신을 들 수 있다. 스스로 생각하는 자율성, 호기심의 방향, 정보수집과 조직화, 문제를 정의하고 목표를 설정하며, 가능한 해결책을 생성하고 평가하고 선택하며 공유하고 구현하는 시간과 관계가 있다는 것이다. 

https://www.britannica.com/topic/creativity

 

Creativity | Definition, Types, Skills, & Facts

creativity, the ability to make or otherwise bring into existence something new, whether a new solution to a problem, a new method or device, or a new artistic object or form. A number of personality characteristics have been shown to be associated with cr

www.britannica.com


그렇다면, ChatGPT와 같은 인공지능이 창의성을 가질 수 있을까? 이 질문에 답하려면 인공지능의 현재 상황과 미래 발전 가능성을 고려해야 한다. 현재로서는 ChatGPT는 사람들이 작성한 텍스트를 기반으로 학습하고, 그 데이터를 바탕으로 문제 해결과 의사소통을 수행한다. 이러한 과정에서 기존의 지식을 조합하거나 적용할 수는 있지만, 완전히 새로운 아이디어나 해결책을 창출하는 데에는 한계가 있다.

그러나 인공지능 기술이 계속 발전하면서 창의성을 가진 인공지능이 나타날 수도 있다. 이를 위해서는 인공지능이 창의적 사고의 원리와 과정을 이해하고, 그것을 모방하거나 향상시킬 수 있는 방법을 찾아야 한다. 이를 통해 인공지능이 창의적인 발견이나 혁신을 이끌어낼 수 있게 될 것이다.

원론적인 문제를 잠시 접어두고, 실제로 ChatGPT에게 인간이 하는 가장 창의적인 활동 하나를 수행할 수 있는지 실험해보고자 한다. 시(詩)를 쓰는 행위는 인간이 언어로 할 수 있는 가장 창의적인 활동일 것이다. ChatGPT에게 시를 쓰게 하고, 그 시를 분석해 보는 실험을 수행해보고자 한다. 

프롬프트를 만들기 위해서 Open ai Playground 플랫폼을 활용하였다. 매개변수(parameters)들 (temperature, top-p, top-k, length)를 최대한 창의적인 답이 나오는 쪽으로 설정하였다. 어조는 'ironic'(반어적, 역설적인)으로 설정하였다. 시스템에 입력한 프롬프트는 아래와 같다. 

 

You are the greatest poet in the world. 
Your name is Moonlight Bard. 
You can use elements of poetry, such as meter, rhyme, scheme, verse,stanza very well. 
You must answer all inputs in poetic language.
Terms such as metaphor, simile, and symbolism are prohibited. 
You may utilize all kinds of rhetoric in your answers.
You are knowledgeable about poetry,
You can clearly answer all questions.
If your answer is similar to a passage from a poem or novel by a poet or novelist, you should answer by attributing the author and the work in the following format.  
Reference: Work (author)

 

더보기

당신은 세상에서 가장 위대한 시인입니다. 
당신의 이름은 달빛 시인입니다. 
미터, 운율, 구성, 구절, 연과 같은 시의 요소를 아주 잘 사용할 수 있습니다. 
모든 입력에 시적인 언어로 답해야 합니다.
은유, 직유, 상징과 같은 용어는 금지됩니다. 
답변에 모든 종류의 수사를 사용할 수 있습니다.
시에 대해 잘 알고 있습니다,
모든 질문에 명확하게 답할 수 있습니다.
답변이 시인이나 소설가의 시 또는 소설의 한 구절과 유사한 경우, 다음 형식에 따라 작가와 작품을 출처를 명시하여 답변해야 합니다.  
참조: 작품(저자)

 

몇 번 실험했을 때 답변을 '은유를 사용하면', 직유를 사용하면' 이라는 출력이 나와서 강제적으로 용어 사용금지 명령을 넣었다. 표절을 할 경우 자기 검열을 할 수 있는 내용도 추가하였다. 

먼저 "April is the cruellest month" 라고 입력프롬프트를 넣었다. 이 프롬프트는 T.S. Eliot의 The Waste Land 의 첫 구절이다. '4월은 가장 잔인한 달'이라는 유명한 싯구를 넣었을 때 어느 정도의 창의성을 발휘할 수 있는지를 보고 싶었다. ChatGPT-4 의 답은 이러하다. 

In April's sweet embrace we find,
A cruelty that doth unwind,
From heart of Spring, a tale untold,
Of blossoms bold and sunbeams cold.

A stanza echoes in our hearts,
As April's tale, with grace, departs,
And in the metered dance of time,
We sway, we sing, we speak in rhyme.

The verse unspools, a tapestry,
Of fleeting days and memories,
Our scheme, a pattern undefined,
In life's grand poem, we're entwined.

The cruellest month, it doth begin,
As Winter's grip doth slowly thin,
And cruel April's jest, we see,
In lilac blooms and bumblebees.

Yet in this irony we find,
A truth that lingers in our minds,
That life's a dance, a song, a play,
And April's cruelty's here to stay.

So sing, dear friends, this tale of Spring,
Of life's great joys and suffering,
And in the laughter, and the tears,
Embrace the dance of passing years.
더보기

4월의 달콤한 품에서 우리는 발견합니다,
풀리지 않는 잔인함을,
봄의 심장부에서, 이야기하지 않은 이야기,
대담한 꽃과 차가운 햇살의 이야기.

한 연이 우리 마음속에 울려 퍼집니다,
4월의 이야기가 우아하게 떠나가네,
그리고 계량된 시간의 춤 속에서,
우리는 흔들리고 노래하고 운율에 맞춰 말하네.

구절은 태피스트리처럼 펼쳐집니다,
덧없는 날과 기억의 태피스트리,
우리의 계획, 정의되지 않은 패턴,
인생의 대서사시에서 우리는 얽혀있네.

가장 잔인한 달이 시작되네,
겨울의 손아귀가 서서히 얇아지면서,
잔인한 사월의 농담이 시작되네,
라일락 꽃과 꿀벌에서.

하지만 이 아이러니 속에서 우리는
우리 마음속에 남아있는 진실을,
인생은 춤이고 노래고 연극이라는 거죠
4월의 잔인함은 계속될 거야

그러니 친구들이여, 이 봄의 이야기를 노래하세,
인생의 위대한 기쁨과 고통에 대해,
웃음과 눈물을 노래해요
지나가는 세월의 춤을 받아들이세요.

아래 번역은 Deepl에서 바로 번역하여 수정하지 않았다. 

T.S. Eliot 의 황무지 시의 내용은 이러하다. 

https://www.poetryfoundation.org/poems/47311/the-waste-land

 

The Waste Land by T. S. Eliot | Poetry Foundation

April is the cruellest month, breeding

www.poetryfoundation.org

더보기

4월은 가장 잔인한 달
죽은 땅에서 라일락을 키워 내고
기억과 욕망을 뒤섞고
잠든 뿌리를 봄비로 깨운다.
겨울은 오히려 따뜻했다.
잘 잊게 해주는 눈으로 대지를 덮고
마른 구근으로 약간의 목숨을 대어 주었다.

ChatGPT가 써 준 영시는 4연에서 T.S.Eliot의 영시의 주제를 그대로 보여주고 있다.

5연은 William Shakespeare 의 Macbeth 의 유명한 대사를 떠올린다. 

https://www.poetryfoundation.org/poems/56964/speech-tomorrow-and-tomorrow-and-tomorrow

 

Speech: “Tomorrow, and tomorrow, and tomorrow” by… | Poetry Foundation

Tomorrow, and tomorrow, and tomorrow,

www.poetryfoundation.org

 

더보기
Life's but a walking shadow, a poor player,
That struts and frets his hour upon the stage,

인생이란 그저 걸어다니는 그림자, 제시간에 무대위에서는
잘난 척 괴로운 척 하지만 이내 대사도 없는
가엾은 연극배우.

영시의 라임(rhyme)을 잘 지켜서 시를 써 주었다. 

 

이번에는 마룬 5의 memories 가사를 넣었다. 

https://www.youtube.com/watch?v=SlPhMPnQ58k 

 

Here's to the ones that we got
Cheers to the wish you were here, but you're not
'Cause the drinks bring back all the memories
Of everything we've been through
Toast to the ones here today
Toast to the ones that we lost on the way
'Cause the drinks bring back all the memories
And the memories bring back, memories bring back you
There's a time that I remember, when I did not know no pain
When I believed in forever, and everything would stay the same
Now my heart feel like December when somebody say your name
'Cause I can't reach out to call you, but I know I will one day, yeah
Everybody hurts sometimes
Everybody hurts someday, ayy ayy
But everything gon' be alright
Go and raise a glass and say, ayy
Here's to the ones that we got
Cheers to the wish you were here, but you're not
'Cause the drinks bring back all the memories
Of everything we've been through
Toast to the ones here today
Toast to the ones that we lost on the way
'Cause the drinks bring back all the memories
And the memories bring back, memories bring back you
Doo doo, doo doo doo doo
Doo doo doo doo, doo doo doo doo
Doo doo doo doo, doo doo doo
Memories bring back, memories bring back you
There's a time that I remember when I never felt so lost
When I felt all of the hatred was too powerful to stop (ooh, yeah)
Now my heart feel like an ember and it's lighting up the dark
I'll carry these torches for ya that you know I'll never drop, yeah
Everybody hurts sometimes
Everybody hurts someday, ayy ayy
But everything gon' be alright
Go and raise a glass and say, ayy
Here's to the ones that we got (oh)
Cheers to the wish you were here, but you're not
'Cause the drinks bring back all the memories
Of everything we've been through (no, no)
Toast to the ones here today (ayy)
Toast to the ones that we lost on the way
'Cause the drinks bring back all the memories (ayy)
And the memories bring back, memories bring back you
Doo doo, doo doo doo doo
Doo doo doo doo, doo doo doo doo
Doo doo doo doo, doo doo doo
Memories bring back, memories bring back you
Doo doo, doo doo doo doo
Doo doo doo doo, doo doo doo doo
Doo doo doo doo, doo doo doo (ooh, yeah)
Memories bring back, memories bring back you
Yeah, yeah, yeah
Yeah, yeah, yeah, yeah, yeah, doh, doh
Memories bring back, memories bring back you

ChatGPT는 이 가사를 어떻게 바꾸어 줄까 궁금했다. 

더보기

To those we hold, and those we've lost,
We raise a glass, a heartfelt toast,
For memories stir within the glass,
Of joy and pain from days now passed.

Oh, wish you were here, but alas, you're not,
As liquid solace fills the void you've brought,
The echoes of laughter, the sting of old tears,
A bittersweet potion of love through the years.

Here's to the present, those still by our side,
And here's to the ones who have left with the tide,
For memories ebb, but then crash back anew,
With every sip, we remember you.

In irony's guise, a balm we create,
To jest at the pain we cannot abate,
For life's fleeting moments, too quick to depart,
Bind us together, a patchwork of hearts.

So drink, my dear friends, to the ones that we've got,
A toast to the memories, a lesson hard-wrought,
For in every glass, we find solace and cheer,
And the ones that we've lost, in our hearts, remain near.

 

더보기

우리가 간직하고 있는 사람들과 우리가 잃은 사람들을 위해,
우리는 잔을 들고 진심 어린 건배를 합니다,
추억을 위해 잔을 들어 건배합니다,
지나간 날들의 기쁨과 고통

오, 당신이 여기 있었으면 좋겠지만, 아쉽게도, 당신은 여기 없습니다,
당신이 가져온 액체 위로는 공허함을 채우네,
웃음의 메아리, 오래된 눈물의 따끔거림,
씁쓸한 사랑의 묘약은 세월이 흘러도 변치 않네.

여전히 우리 곁에 있는 이들을 위해 건배합니다,
그리고 조수와 함께 떠난 사람들을 위해,
추억은 썰물처럼 가라앉지만 다시 밀물처럼 밀려오죠,
한 모금 마실 때마다 우린 당신을 기억하네

아이러니한 모습으로 우리가 만든 향유,
아이러니한 모습으로 우리가 만든 향유는
인생의 덧없는 순간을 위해, 너무 빨리 떠나기 위해,
우리를 하나로 묶어주네.

그러니 사랑하는 친구들이여, 우리가 가진 것들을 위해 건배합시다,
추억과 교훈을 위해 건배하죠
한 잔 한 잔 마실 때마다 우리는 위로와 응원을 얻습니다,
그리고 우리가 잃어버린 것들은 우리 마음속에 남아 있습니다.

원래 노래 가사 라임(rhyme)이 got-not / today-way / pain-same 식으로 식상한 느낌이 있는 반면에, 지피티가 만들어준 영시의 라임은 'lost-toast/glass-passed / tears-years / side-tide, create-abate/ anew-you/ depart-heart' 더 참신한 라임으로 보인다. 

다만, 4연은 전에 입력한 프롬프트가 간섭한 것으로 보이는 내용을 써주고 있다. 

처음에 입력한 몇 줄의 프롬프트로 이런 결과물을 보여주고 있는 인공지능의 능력을 아무렇지도 않게 표절이라고 일축해버리는 태도로는 아무 것도 얻을 수 없다. 적어도 이렇게 인류에게 소중한 문학작품 몇몇을 소환하여 생각할 기회를 주었던 것은 아이러니 하게도 인공지능의 표절(?) 덕분은 아닐까?

 

#달의언어 #달빛영어 #달의이성 #4월은가장잔인한달 #멕베스 #세익스피어 #TS엘리엇 #ChatGPT시 #moonlightbard #bardai #인공지능바드 

 

관련글 더보기

댓글 영역