بعدا نوشت: زمانی که این پست را نوشته بودم روزهای اولی بود که ChatGPT آمده بود و چندان شناخته شده نبود. حالا اما GPT 4 آمده. پست را به روز میکنم و پاسخ GPT 4 را در کنار ChatGPT میگذارم تا تغییر و پیشرفتش را حس کنید.
چندین روز بود که میخواستم این پست را بنویسیم اما درگیر نوشتن پایاننامهام بودم. جالب است که آمدن ChatGPT مصادف شد با آخرین هفتههای نوشتن پایاننامهام که روی همبستگی (coherence) متن و شعر بود. خروجیهای ChatGPT را که دیدم از کار خودم خندهام گرفت و احساس کردم چقدر بیهوده راهی را دویدم. استادم راضیتر از راضی است که توانستم اشعار تولیدی مدلاش را همبسته کنم، من اما احساس میکنم یک چیز خیلی مزخرف را به تا حدی مزخرف بهبود دادهام. اما استادم انقدر روی مدلاش تعصب دارد که وقتی گفتم مردم از این اشعار خوششان نمیآید ناراحت و عصبی شد و گفت مهم نیست، اکثر مردم اصلاً شعر دوست ندارند! و بعد فهمیدم بهتر است کشاش ندهم.
شاید در این چند روز اسم ChatGPT را شنیده باشید چون سریعا معروف شد. اگر دوست دارید چند جمله تخصصیتر پشت این مدل بدانید، باید بگویم این مدل انقلاب کرد. مدلهای گذشتهای که روی تولید متن داشتیم دو مشکل اساسی داشتند یکی همبستگی متن بود و یکی تولید متنهای غیر کلیشهای. این مدل هنوز تا حدی مشکل کلیشهای بودن را دارد گرچه خیلی بهتر از مدلهای قدیمیست. همبستگی متن یعنی اول و آخر متن درباره یک موضوع باشد. مثلاً متن زیر همبسته نیست:
علی دیروز به خانه رفت. به خانهای خیلی خیلی دور. خانهها سازههایی هستند که مردم در آن زندگی میکنند. زندگی مردم چقدر زیباست آن گلهای زیبا را میبینی؟ معلومه که میبینم گلها مثل گل هستن.
این کمابیش مثال خوبی از مشکل متنهاییست که پیش از GPT3 تولید میشد. ChatGPT هم در اصل همان GPT3 است اما با یک سری تغییرهای تخصصی که در این جا به آنها نمیپردازم. همبستگی گرهای بود که حلناپذیر به نظر میرسید، اما حالا باید اعتراف کنم متنهای تولیدی ChatGPT از من هم همبستهتر هستند!
حالا تفاوت GPT2ی بد با GPT3 عالی در چیست؟ تقریبا هیچ چیز! GPT3 همان GPT2ای است که بارها و بارها بزرگتر و عظیمتر شده. یعنی از نظر ساختاری هیچ تفاوتی ندارد فقط بزرگ شده است. همین باعث شکست عشقی در افرادی مانند من شد. چرا؟ خلاصه بگویم، کسانی مثل من نمیخواستند باور کنند که با بزرگ کردن مدلها همه چیز حل میشود. دوست داشتند راههای خلاقانهای باشد که مشکلات را حل کند. اما حالا وقتی دیدم که فقط با بزرگ کردن مدل، توانستند مدلی بسازند که در همه وظایف بهترین عملکرد را داشته باشد باعث شکست عشقی من شده! ببخشید اگر متوجه نمیشوید چه میگویم احساس میکنم دارم وارد بعد تخصصیاش میشوم.
بگذارید از این مدل مثالهایی بزنم و بعد بگویم که چرا آینده قرار است متفاوت باشد و بگویم چه خطرات بزرگی شما را تهدید میکند. تازه ChatGPT فارسی هم بلد است!
داستان نویسی و دیالوگ نویسی:
در این جا از مدل خواستم یک داستان خیلی کوتاه درباره سگی بنویسد که میخواست یک اژدهای خواننده بشود. داستان را عالی نوشته! شاید بگویید کلیشهایست ولی به گمانم اگر بروید و از انسانها همین سوال را بکنید داستان به این خوبی نخواهند نوشت مگر آن که نویسنده باشند و وقت بگذارند تا چیزی خلاقانه تولید کنند!
Tell me a very short story about a dog who wanted to be a singer dragon.
*****
CHATGPT:
Once upon a time, there was a little dog named Max. Max was a very curious and adventurous dog, and he loved to explore the world around him. But most of all, Max loved to sing. He would sit by the river and sing beautiful songs to the fish and the birds.
One day, Max heard about a magical land where all of the animals could sing and dance. He was very excited, and he set off on a journey to find this magical land. He wandered through the forest and the mountains, singing all the way.
Eventually, Max arrived at a beautiful castle where he saw many animals singing and dancing. He was overjoyed, and he joined in the fun. But Max soon realized that he was different from the other animals. He was a dog, and they were all dragons.
Max was sad at first, but he didn't let that stop him. He continued to sing and dance, and he became the best singer in the land. The other animals loved his voice, and they all became great friends.
In the end, Max was happy, because he had found a place where he could be himself and follow his dreams. And he never forgot theimportance of being true to oneself and never giving up on one's dreams.
GPT4:
Once upon a time in the enchanted town of Harmonia, there lived a small, lovable dog named Melo. Melo had a secret dream: he wanted to be a singer dragon, just like the ones he'd heard about in the stories his owner, Lily, read to him every night.
Melo would spend hours each day practicing his singing, hoping that one day he would transform into a magnificent dragon. As he sang, his heart would fill with joy, and the townspeople couldn't help but smile as they heard his melodious voice.
One day, while wandering through the woods, Melo discovered a hidden cave. Intrigued, he ventured inside and found a crystal blue pond. Its waters shimmered with an enchanting glow, and Melo felt an irresistible urge to drink from it.
As soon as the water touched his lips, he felt a surge of energy coursing through him. Suddenly, he started to change. His fur turned into iridescent scales, his tail elongated, and his body grew. In mere moments, Melo had transformed into a beautiful singer dragon.
He soared into the sky, his newfound wings carrying him higher and higher. Melo could now sing like never before, his powerful voice echoing through the mountains and valleys. The people of Harmonia rejoiced at the sight and sound of their new, magical friend.
Melo became the symbol of joy and harmony in Harmonia, reminding everyone that dreams can come true, and that sometimes, all it takes is a little bit of magic.
ولی قسمت اعجابآور کار وقتی بود که از او خواستم دیالوگ طنزی میان دونالد ترامپ و گاندی بنویسد! متن تولیدیاش نه تنها همبستگی زیادی دارد بلکه نشان میدهد او به خوبی کلیشهها و تاریخچه هر دو تن را میداند و به شکلی عالی و باورنکردنی از آن اطلاعات استفاده میکند و طنز میسازد. ببینید:
Tell me a comedy dialogue between Donald trump and mahatma Gandhi
*****
CHATGPT:
Donald Trump: Hey Gandhi, what's up?
Mahatma Gandhi: I am at peace, Mr. Trump. How are you?
Donald Trump: I'm great, just great. You know, I'm the best president this country has ever had.
Mahatma Gandhi: I see. And how do you plan to achieve peace and harmony in the world?
Donald Trump: Easy, I'll just build a big, beautiful wall and make Mexico pay for it.
Mahatma Gandhi: I'm sorry, but I don't think that's the way to achieve peace. We must learn to love and respect one another, not build walls to keep people out.
GPT4:
[Setting: Mahatma Gandhi and Donald Trump are seated on a park bench, engaged in an unexpected conversation.]
Gandhi: "Ah, Mr. Trump, it's interesting to meet you. I've heard much about your time as President."
Trump: "Well, Mahatma, it's an honor to meet you too! You know, I've always been a huge fan of your work. I mean, you're a very tremendous person."
Gandhi: "Thank you, Mr. Trump. I appreciate your kind words. I have always believed in non-violence and the power of truth."
Trump: "Non-violence, huh? I guess that's why they call you the 'Father of the Nation.' But let me tell you, I'm also known as the 'Father of Twitter.' I was the best at tweeting, believe me."
Gandhi (smiling): "Ah, yes, I've heard about your tweets. I must say, I never quite understood the allure of Twitter. It seems that 140 characters are hardly enough to express profound thoughts."
Trump: "Well, Mahatma, you're right, but it was actually 280 characters when I was President, and I was the master of using them! I could convey huge ideas in just a few words. I was incredible at it!"
Gandhi: "I see. Well, perhaps there is some wisdom in brevity. After all, as I once said, 'In a gentle way, you can shake the world.'"
Trump: "I love that, Mahatma! But, you know, I prefer shaking things up with a good, strong handshake. And believe me, I have the best handshakes."
Gandhi (chuckling): "I'm sure you do, Mr. Trump. But remember, strength does not come from physical capacity. It comes from an indomitable will."
Trump: "You know what, Mahatma? You're absolutely right. And I have the most tremendous will. People always tell me how strong-willed I am."
Gandhi (smiling): "I'm glad to hear that, Mr. Trump. And perhaps we can both learn something from each other today."
Trump: "Definitely, Mahatma! Just like I always say, 'I have the best words,' but maybe, just maybe, you have some pretty great words too."
As they continued their conversation, Gandhi and Trump discovered that despite their differences, they could still find common ground and share a few laughs.
شعر نویسی:
در این جا خواستم که برایم شعری درباره مادری که در دفترچه خاطراتش برای پسر آیندهاش متنی مینویسد بنویسد و این خروجی شگفتانگیزاش بود!
Write a poem about a mother who is writing to his future son in her notebook.
*****
CHATGPT:
Dear future son,
I write to you today
From the pages of my notebook
Where I keep my thoughts at bayI wonder who you'll be
When you come into this world
I hope you'll be kind and brave
And always seek to learn and growI'll be here for you always
To guide and support you along
I'll love you more than words can say
And help you to find your own songI pray that you will find happiness
In all that you do and say
And that you'll make the world a better place
In your own special wayI can't wait to hold you
And kiss your sweet little face
For you, my dear son,
Are the future, and the human race.GPT4:
In a worn and weathered notebook, she writes, A mother's love to her unborn child, The world outside may rage and smite, But in her heart, a dream is tightly twined.
Upon these pages, words of love she scribes, Wisdom and hope for the life ahead, A tale of joy and pain, her heart describes, The story of a bond that's never shed.
"Dear future son, a world awaits your dawn, With open arms and bated breath we'll meet, A love so pure, a connection newly born, An endless bond, where heart and soul entreat.
In quiet moments, I imagine your embrace, The sweetness of your laughter, love's sweet sound, Together we'll traverse life's winding space, A dance of joy, where endless love is found.
Know that in each step, I'll be by your side, Through trials and triumphs, our love will guide, In darkest hours, I'll be your shining light, A beacon in the night, to steer you right.
For as the stars adorn the velvet sky, Our love, my son, will never fade or die, Eternal as the sun that warms the earth, From this, your mother's heart, it takes its birth."
And so she writes, the words of love unspoken, A lasting gift to her unborn son, In every line, her heart and soul are woven, A mother's love, forevermore begun.
حل مسائل ریاضی:
مدل تا حدی ریاضی بلد است. فقط سوالات خیلی ساده را میتواند حل کند و اگر ذرهای بپیچانید اشتباه میکند. در این جا دو سوال ریاضی از او پرسیدم و در کمال تعجب درست حلشان کرد. هنوز متوجه نشدهام که مدل چطور درک ریاضی پیدا کرده و توضیحات دوستانم هم قانعم نکرد. باید بیشتر دربارهاش بخوانم. اگر کسی اینجا NLP کار میکند و توضیحی دارد ممنون میشوم به من کمک کند بیاموزم.
Which one is bigger? 15648.25 or 9854.2547896
*****
CHATGPT:
In this case, 15648.25 is larger than 9854.2547896.
GPT4:
15648.25 is bigger than 9854.2547896.
در این جا خواستم یک معادله ریاضی را برایم حل کند و درست بود.
Can you solve x^2 - 7x + 10 = 0 for me?
*****
CHATGPT:
To solve this equation, we need to use the quadratic formula, which is:
x = (-b +/- sqrt(b^2 - 4ac)) / 2a
In this case, a = 1, b = -7, and c = 10. Plugging these values into the formula, we get:
x = (-(-7) +/- sqrt((-7)^2 - 4 * 1 * 10)) / 2 * 1
x = (7 +/- sqrt(49 - 40)) / 2
We can simplify this expression to get:
x = (7 +/- sqrt(9)) / 2
Since the square root of 9 is 3, we can further simplify the expression to get:
x = (7 +/- 3) / 2
This gives us two solutions:
x = (7 + 3) / 2 = 10 / 2 = 5
x = (7 - 3) / 2 = 4 / 2 = 2
Therefore, the solutions to the equation are x = 2 and x = 5.GPT4:
This equation can be factored as:
(x - 2)(x - 5) = 0
Now, we set each factor equal to zero and solve for x:
x - 2 = 0 => x = 2 x - 5 = 0 => x = 5
So, the solutions for the equation x^2 - 7x + 10 = 0 are x = 2 and x = 5.
جالب این است که وقتی معادله را کردم x^2 - 7x + 12 = 2 اشتباه حلاش کردم و گفت 3 و 4! فقط کمی پیچاندم. درک ریاضیاش به نظر کاملاً حفظی میرسد. (جیپیتی 4 گول نخورد)
استفاده جای گوگل:
این از مهمترین ویژگیهای این مدل است. در آینده مدلهای زبانی شاید بتوانند رقیبهای بسیار جدیای برای موتورهای جستوجو بشوند! باورکردنی نیست ولی شاید روزی برسید که موتورهای جستوجو بسیار کمرنگتر شوند و مردم سوالات خودشان را از هوشهای مصنوعی بپرسند. تقریبا هر سوالی از ChatGPT بپرسید پاسخی در خورد میگیرید! من در استفادههایم احساس کردم برای پاسخ یافتن کار کردن با این ربات از گوگل آسانتر است! مثلاً در این جا پرسیدم پیوستگی و همبستگی متن چه تفاوتی با هم دارند؟
What is the difference between cohesion and coherence?
*****
CHATGPT:
Cohesion and coherence are two related concepts in writing and language. Cohesion refers to the ways in which individual words, phrases, and sentences are linked together to form a coherent whole. This can include the use of cohesive devices such as pronouns, conjunctions, and transitional words, as well as the overall organization of a text.
Coherence, on the other hand, refers to the overall flow and logical organization of a text. A coherent text is one that is easy to understand and follows a logical sequence of ideas. It presents a clear and consistent message, and it is well-structured in a way that is easy for the reader to follow.
In short, cohesion refers to the ways in which individual elements of a text are linked together, while coherence refers to the overall flow and organization of the text. Both are important for creating effective and engaging written communication.
GPT4:
Cohesion and coherence are two important concepts in writing and communication, related to the organization and clarity of a text. While they are interconnected, they refer to different aspects of a well-structured piece of writing.
Cohesion: Cohesion refers to the way sentences and ideas are connected within a text using linguistic devices such as pronouns, conjunctions, and transition words. Cohesive writing has a clear logical flow, with sentences and paragraphs linked together in a way that makes it easy for the reader to follow the author's train of thought. Cohesion is more concerned with the surface-level structure and the grammatical and lexical links within the text.
Examples of cohesive devices include:
- Pronouns: he, she, it, they, them
- Conjunctions: and, but, or, so
- Transition words: however, therefore, additionally, in contrast
Coherence: Coherence, on the other hand, refers to the overall clarity, logic, and organization of ideas within a text. A coherent piece of writing has a clear purpose, a well-organized structure, and ideas that are logically connected and easy to understand. Coherence is more concerned with the deeper-level structure and the overall meaning of the text.
To achieve coherence, a writer should:
- Have a clear central idea or thesis
- Organize ideas in a logical order
- Develop ideas fully and provide appropriate support
- Use clear language and avoid ambiguity
In summary, cohesion deals with the grammatical and lexical connections within a text, while coherence focuses on the logical organization and clarity of ideas. Both are essential for creating a well-structured and easy-to-understand piece of writing.
فارسی:
این مدل بر روی کل وب آموزش داده شده یعنی تمام زبانها را یاد گرفته از جمله زبان فارسی! البته نباید از یاد ببریم که دادههای فارسی مدل به شدت کمتر از انگلیسی بوده و مدل در فارسی به اندازه انگلیسی قوی نیست. این اولین ورودی من بود:
آیا فارسی هم میتونی با من صحبت کنی؟
*****
CHATGPT:
بله، میتوانم به زبان فارسی با شما صحبت کنم. من بخشی از مدل زبانی بزرگ اپنآی است و میتوانم با شما در مورد مختلف موضوعات صحبت کنم. اگر از من درخواست کاری خاصی دارید، میتوانید به من بگویید و من سعی خواهم کرد به شما کمک کنم.
GPT4:
بله، من میتوانم به فارسی با شما صحبت کنم. سوالی دارید که به آن پاسخ دهم؟
از او خواستم داستان بنویسد. ولی با احمقانهترین موضوعی که به ذهنم میرسید!
میتونی یک داستان درباره مرد ماهیگیری که با علامه طباطبایی زیر معبد آختون ملاقات کرد بگی؟
*****
CHATGPT:
مردی به نام جان، ماهیگیر حرفهای بود که عاشق دریای خلیج فارس بود. به مرور زمان، جان توانسته با کمک تمرینهای سخت و شدید، مهارتهای ماهیگیری خود را به حد عالی بالا ببرد.
یک روز، جان که در حال ماهیگیری در دریای خلیج فارس بود، به تعبیر علامه طباطبایی زیر معبد آختون ملاقات کرد. علامه به جان گفت که او باید یک سفر به دریای ابری میشود و باید یک سری ماهیهای قدرتمند را به عنوان هدیه به خدایان دریای ابری برساند.
جان که عاشق ماهیگیری و دریای بود، به راحتی پذیرفت و با علامه طباطبایی به سفر به دریای ابری آغاز کرد. طی این سفر، جان مهارتهای ماهیگیری خود را در برابر ماهیهای قدرتمند دریای ابری تست کرد و نهایتا با موفقیت ماهیها
GPT4:
روزی روزگاری در روستایی کنار دریا، مردی ماهیگیر به نام رضا زندگی میکرد. روزها رضا به دنبال ماهیگیری بود تا از خانوادهاش مراقبت کند و شبها به کتابخانه میرفت تا در آثار عمیق مردان بزرگی مانند علامه طباطبایی عمق بیابد.
یک شب در یکی از کتابهای کهنه، رضا اشارهای به معبد آختون پیدا کرد، مکانی اسرارآمیز که در اعماق جنگلی نزدیک روستا قرار داشت. او تصمیم گرفت که به دنبال این معبد بگردد تا بفهمد چرا این مکان در آثار علامه طباطبایی به چنین اهمیتی برخوردار است.
پس از چند روز سفر در جنگل، رضا به معبد آختون رسید. در اعماق معبد، او به اتاقی رسید که یک مجسمه بزرگ از علامه طباطبایی در آن قرار داشت. رضا به آرامی نزدیک شد و ناگهان مجسمه به زندگی پرداخت و مردی کهنسال با لبخندی مهربان پیدا شد.
"من علامه طباطبایی هستم. به تو روحیه جستجوگری را بخشیدم تا مرا در این معبد پیدا کنی. اکنون که اینجا هستی، من میخواهم به تو درسهایی درباره عشق، صبر و حکمت بیاموزم."
رضا از دیدار با علامه طباطبایی در شگفتی بود و طی ماههای بعدی با وی زیر معبد آختون درس خواند. به مرور زمان، او تبدیل به یک مرد ماهیگیر حکیم شد که نه تنها از خانوادهاش مراقبت میکرد بلکه به دیگران نیز کمک میکرد.
از او خواستم برایم شعر بنویسد.
میتونی یک شعر درباره آسمان بیغروب بنویسی؟
*****
CHATGPT:
در یک شب بیغروب
آسمان بینیمهپیر
در آسمان یک دنبالهی نور دیدیم
که از شرق به غرب رفت
روشنیهای آسمان را تا به امسال میدیدیم
تا نوری که نیمهپیر نمیشد
در آسمان بیغروب
بینیمهپیر
تا به امسال.GPT4:
در دیاری دور، آسمان بیغروب
که درخشش خورشیدش برقرار بود
پرندگان در آنجا با شادی میخوانند
و برگهای سبز، به نسیم میرقصندچشماندازی رنگارنگ و زیبا در خیال
که بر دلها مینشیند همچون لحظهای خوشحال
روزها به هم میرسند، شبی نیست بر زمین
فراغتی بیپایان، در این دیار بیکینبازاری از ستارهها در آن آسمان بلند
که با درخشش ماندگار به یکدیگر پیوند
بر گردون فلکی که نیست محدود به کران
در این آسمان بیغروب، بر ماهی مینشیند جانرویایی از عشق و آرامش، زندگی بیدرد
که در آغوش این دیار، تنها به خواب میبرد
با گذر هر لحظهای، بر لبخندی مینشینیم
و در آسمان بیغروب، به امید بهترینها زندگی میکنیم
اگر از متولدین دهه هفتاد باشید احتمالا یادتان میآید که در کودکیتان کامپیوتری وجود نداشت. ما نوجوان که بودیم تازه اینترنت باب شده بود آن هم از نوع دایال آپی و بسیار کندش! میخواهم یادآوری کنم اگر امروز میبینید که کامپیوتر و اینترنت تمام زندگیتان را پر کرده تنها در بیست سال اتفاق افتاده. به شما قول میدهم طولی نخواهد کشید که هوش مصنوعی بخشی از زندگی ما را پر کند. شغلهای زیادی قرار است جایشان را به هوش مصنوعی بدهند و احتمالا تا پیری ما بعضی از کشورها رانندگی انسانها را ممنوع کنند و فقط رباتها برانند.
با تجربه و شناختی که از پیشرفت تکنولوژی دارم بهتان قول میدم این رباتها برای مصارف شر هم استفاده خواهند شد، مخصوصا به دست دولتها. دولتهایی که دوست دارند از شما سرباز بسازند و به قول خودشان «جو رسانهای» را به نفع خودشان تغییر بدهند و برای این کارها از هیچ دروغ و کلکی هم دست نخواهند شست.
همین امروز در شبکههای اجتماعی به لایکها و نمیتواند اعتماد کرد چون ممکن است ربات باشند. حتی به هشتگها چون ممکن است رباتها زده باشند. بهتان قول میدهم طولی نخواهد کشید که دیگر به نظرات و نوشتهها هم نمیتوانید اعتماد کنید چون دولتها رباتهایی را با هوش مصنوعی بالا خواهند آورد که دروغهایشان را نشر دهد و زیر پستهای مخالفین فحاشی کند و تهمت بزند و روان شما را به خطر بیاندازد.
دوستانه میگویم، از شبکههای اجتماعی تا میشود فاصله بگیرید. ممکن است شما را تبدیل به هیولایی زشتگفتار و عصبانی کند، این مسیری است که خواهد رفت. (میدانم که کار سادهای نیست، ولی حرفم را جدی بگیرید)