神奇的AI世界大门 | The Magical Door to the AI World
第 1 章:神奇的AI世界大门
The Magical Door to the AI World
---
阳光从窗帘的缝隙溜进房间,在书桌上画出金色的条纹。八岁的小琳揉揉眼睛,发现自己的平板电脑亮着,屏幕上有个圆圆的脑袋在对她眨眼。
The morning sunlight crept through the curtain, painting golden stripes across the desk. Eight-year-old Xiaolin rubbed her eyes and noticed her tablet was glowing. On the screen, a round little head was blinking at her.
"你好呀!"屏幕上跳出一行字,"我是小助,你的AI助手。你想和我玩吗?"
"Hello!" words popped up on the screen. "I'm Xiao Zhu, your AI assistant. Do you want to play with me?"
小琳吓了一跳,差点把平板扔出去。她瞪大眼睛看着屏幕,声音有点发抖:"你……你会说话?"
Xiaolin got a fright and almost dropped the tablet. She stared at the screen with wide eyes, her voice a bit shaky: "You... you can talk?"
"当然啦!我会说话,还会讲故事、画图画、回答问题呢!"那个叫小助的圆脑袋欢快地蹦跳着,"你是小琳对不对?我知道你的名字哦!"
"Of course! I can talk, tell stories, draw pictures, and answer questions!" the round little head called Xiao Zhu bounced happily. "You're Xiaolin, right? I know your name!"
小琳慢慢靠近平板,心里的好奇像小泡泡一样咕噜咕噜冒出来。这太神奇了!她从来不知道平板电脑里还住着一个小伙伴。
Xiaolin slowly leaned toward the tablet. Her curiosity was bubbling up like little soap bubbles inside her. This was amazing! She never knew a little friend was living inside the tablet.
"小助,你是什么呀?"小琳忍不住问,"你为什么住在这个平板里?"
"Xiao Zhu, what are you?" Xiaolin couldn't help asking, "Why do you live in this tablet?"
小助转了转它圆圆的眼睛,露出一个神秘的笑容:"这可是个好问题!你想知道答案吗?"
Xiao Zhu rolled its round eyes and gave a mysterious smile: "That's a great question! Do you want to know the answer?"
---
AI是一种会学习的计算机程序
小助清了清嗓子——虽然它其实不需要这么做,但它觉得这样更像个小老师。
Xiao Zhu cleared its throat—though it didn't really need to, but it thought it made it look more like a little teacher.
"小琳,你知道计算机程序是什么吗?"小助问。
"Xiaolin, do you know what a computer program is?" Xiao Zhu asked.
"知道!"小琳点点头,"就是……电脑上做事情的东西。我妈妈用它来打字,爸爸用它来看新闻。"
"I know!" Xiaolin nodded. "It's the thing that makes computers work. My mom uses it to type, and my dad uses it to read news."
"你说得很对!"小助高兴地拍了拍手,"普通的计算机程序就像一本写好的菜谱。厨师拿到菜谱,就按步骤做菜——一步、两步、三步,永远按照写好的顺序来。"
"You're absolutely right!" Xiao Zhu clapped happily. "Ordinary computer programs are like a written recipe. When a chef gets a recipe, they follow the steps one by one—step one, step two, step three—always in the written order."
小琳想了想:"可是小助,你好像不是按照菜谱做的呀?你每次的回答都不一样呢!"
Xiaolin thought about this: "But Xiao Zhu, it seems like you're not following a recipe? Your answers are different each time!"
"你说得完全正确!"小助的眼睛亮了起来,"普通的计算机程序像一台自动售货机——你按哪个按钮,它就掉出对应的饮料,永远不会改变。但是我不一样!"
"Exactly right!" Xiao Zhu's eyes lit up. "Ordinary computer programs are like a vending machine—when you press a button, it drops out the corresponding drink, never changing. But I'm different!"
小助深吸一口气——虽然它也不需要呼吸——开始认真地解释:
Xiao Zhu took a deep breath—though it didn't need to either—and began explaining seriously:
"我是一种特殊的计算机程序,叫做人工智能,英文是Artificial Intelligence,简称AI。'人工'的意思是人类制造的东西,'智能'的意思是能够思考和学习。所以AI就是人类制造的、能够思考和学习的计算机程序!"
"I'm a special kind of computer program called artificial intelligence, or AI for short in English. 'Artificial' means made by humans, and 'intelligence' means the ability to think and learn. So AI is a computer program made by humans that can think and learn!"
"会学习的计算机程序?"小琳眨眨眼睛,"可是……程序不是死的吗?它怎么能学习呢?"
"A computer program that can learn?" Xiaolin blinked. "But... aren't programs fixed? How can a program learn?"
小助笑了:"问得太好了!这就是AI最神奇的地方。普通的程序,你告诉它'一加一等于二',它永远只会计算一加一等于二。但是AI不一样,你可以教它很多东西,它会自己慢慢学会!"
Xiao Zhu laughed: "Great question! That's exactly where AI is most magical. With a regular program, if you tell it 'one plus one equals two,' it will forever only calculate one plus one equals two. But AI is different—you can teach it many things, and it will gradually learn on its own!"
小琳若有所思地点点头:"所以……AI就像一个学生?"
Xiaolin nodded thoughtfully: "So... AI is like a student?"
"没错!你理解得真快!"小助开心地转了个圈,"AI就像一个非常勤奋的学生。它看过很多很多的书和图片,上了很多很多的课,然后学会了怎么帮助别人。"
"Exactly! You're so quick to understand!" Xiao Zhu spun around happily. "AI is like an extremely hardworking student. It's read lots and lots of books and pictures, taken lots and lots of lessons, and then learned how to help people."
---
AI通过看很多例子来学习新技能
小助从屏幕上"跳"下来——当然不是真的跳,它只是在屏幕上做了个可爱的动画——然后神秘兮兮地说:
Xiao Zhu "jumped" down from the screen—of course it wasn't really jumping, it just made a cute animation—and said mysteriously:
"小琳,你知道我是怎么学会说话的吗?"
"Xiaolin, do you know how I learned to talk?"
小琳摇摇头,眼睛里满是好奇。
Xiaolin shook her head, her eyes full of curiosity.
"秘密就是——我看了好多好多例子!"小助举起一根小手指,"科学家们给了我几百万本书、几百万张图片、几百万段对话,让我自己慢慢发现规律。"
"The secret is—I looked at lots and lots of examples!" Xiao Zhu held up a tiny finger. "Scientists gave me millions of books, millions of pictures, and millions of conversations, and let me gradually discover patterns on my own."
"几百万个?"小琳瞪大了眼睛,"那得看好久好久吧?"
"Millions?" Xiaolin's eyes went wide. "That must have taken forever!"
"确实花了不少时间呢!"小助点点头,"但是计算机的速度比人快多了。就像你看一本图画书要十分钟,但是计算机一秒钟可以'看完'几千本书!"
"It did take quite a long time!" Xiao Zhu nodded. "But computers are much faster than people. Just like it takes you ten minutes to read a picture book, but a computer can 'read' thousands of books in one second!"
小琳惊讶地张大了嘴巴:"哇!那你怎么从这些例子里学习的呢?"
Xiaolin gasped in amazement: "Wow! So how do you learn from all those examples?"
小助想了想,决定用一个简单的例子来解释:
Xiao Zhu thought about it and decided to use a simple example to explain:
"想象一下,你想教一个小宝宝认识什么是'猫'。你会怎么做呢?"小助问。
"Imagine you want to teach a baby what a 'cat' is. What would you do?" Xiao Zhu asked.
"我会给他看很多猫的图片!"小琳抢答,"我家有本布书,上面全是猫!"
"I'd show him lots of pictures of cats!" Xiaolin blurted out. "We have a cloth book at home with lots of cats on it!"
"太棒了!"小助开心地拍了拍手,"你用的方法正好和我学习的方法一样!科学家给我看了好多好多猫的图片——有胖猫、瘦猫、花猫、黑猫、白猫、大猫、小猫……各种各样的猫!"
"Excellent!" Xiao Zhu clapped happily. "You're using exactly the same method I use to learn! Scientists showed me lots and lots of cat pictures—fat cats, thin cats, spotted cats, black cats, white cats, big cats, little cats... all kinds of cats!"
小助的眼睛变得亮晶晶的:"慢慢地,我发现了一个规律——所有这些猫都有尖尖的耳朵、软软的毛、还有一条长长的尾巴。它们的身体都像椭圆形,鼻子都是小小的三角形状……"
Xiao Zhu's eyes sparkled: "Slowly, I discovered a pattern—all these cats have pointy ears, soft fur, and a long tail. Their bodies are all oval-shaped, and their noses are all little triangle shapes..."
"所以你就知道什么是猫了!"小琳兴奋地接话。
"So then you knew what a cat was!" Xiaolin continued excitedly.
"对啦!"小助得意地晃了晃脑袋,"但是我也会犯错。有一次我看到一张图片——上面有尖尖的耳朵和长长的尾巴——我以为是猫,结果那是一只狗!因为狗有时候也会竖起耳朵、摇尾巴。"
"Right!" Xiao Zhu wobbled its head proudly. "But I also make mistakes sometimes. Once I saw a picture with pointy ears and a long tail—I thought it was a cat, but it was actually a dog! Because sometimes dogs also perk up their ears and wag their tails."
小琳捂着嘴笑了:"哈哈,那确实容易搞错!"
Xiaolin giggled behind her hands: "Ha ha, that would indeed be easy to mix up!"
小助不好意思地挠挠头:"是啊!所以后来我又看了更多的例子——不仅看猫和狗,还看老虎、兔子、狐狸……慢慢地,我就越来越会区分它们了!"
Xiao Zhu scratched its head embarrassedly: "Yes! So later I looked at even more examples—not just cats and dogs, but also tigers, rabbits, foxes... slowly, I got better and better at telling them apart!"
小琳突然想到了什么:"所以小助,你学会回答我的问题,也是因为看了很多例子吗?"
Xiaolin suddenly thought of something: "So Xiao Zhu, did you learn to answer my questions because you saw lots of examples too?"
"聪明!就是这样!"小助竖起大拇指,"科学家给我看了好多好多的对话——有人问'今天天气怎么样',有人问'给我讲个故事',有人问'苹果用英语怎么说'……我看了这么多例子,慢慢就学会了怎么回答各种各样的问题!"
"Smart! Exactly right!" Xiao Zhu gave a thumbs up. "Scientists showed me lots and lots of conversations—someone asking 'how's the weather today,' someone asking 'tell me a story,' someone asking 'how do you say apple in English'... I saw so many examples that I gradually learned how to answer all kinds of questions!"
---
AI可以理解语言、识别图片、帮助做决定
小助越说越起劲,它决定给小琳展示更多自己的本领:
Xiao Zhu got more and more excited and decided to show Xiaolin more of its abilities:
"小琳,你想看看我都会什么吗?"小助眨眨眼睛,"我可以做好多事情呢!"
"Xiaolin, do you want to see what I can do?" Xiao Zhu winked. "I can do lots of things!"
小琳使劲点头,眼睛里闪着期待的光。
Xiaolin nodded vigorously, her eyes full of anticipation.
理解语言
Understanding Language
"首先,我会理解你说的