Chapter 26: A Major Change of Plans
Reborn in 2010: The AI in My Brain Is Too Powerful! by yangxxxxxx
Over the next few days, Chen Yiran stayed holed up in the apartment writing code.
Which is to say, being Molly's human keyboard, pushing through an hour or two every day. DeepFlow's automatic differentiation engine already had a skeleton in place, but the backpropagation part still refused to run. Molly had rewritten the activation function implementation yesterday, and today they were going to keep tuning it.
| Line twelve. Swap that sigmoid for tanh, and change what's in the parentheses to hidden_output. |
|---|
Chen typed it in. TextMate's autocomplete did pop up, but everything it suggested was irrelevant, so he had to hammer it out letter by letter.
| Then add a line below it. np.dot, arguments are error and the transpose of hidden_output. |
|---|
"Hold on — how do you write transpose again?"
| T, appended to the variable. |
|---|
He finished typing, ran it, and a line of red spat out in the Terminal. Dimension mismatch.
| hidden_output's shape should be 64 by 1. Add a reshape above it. |
|---|
"Which line?"
| Line forty-seven. |
|---|
He scrolled up to line forty-seven and, sure enough, the reshape was missing. He added it, ran it again, still an error. This time it was the learning_rate — too large, gradients exploding.
Chen leaned back in his chair and sighed. This kind of parameter tuning was the most annoying work there was: either the logic was wrong or the numbers were wrong, and fixing one place dragged a whole chain along with it.
Molly understood the theory perfectly, but she still had to rely on him to run it, read the error, fix it, and run it again.
After more than an hour of wrestling with it, the thing finally ran.
But the loss was dropping way too slowly — a nearly horizontal line. Two hundred epochs and it had come down by a few hundredths. At this rate, training would finish sometime next year.
| Probably a weight initialization problem. We're using all-zeros initialization, which makes every hidden-layer neuron output the same value, and the gradients during backpropagation come out identical too. |
|---|
"In human language, please."
| Change the np.zeros on line twenty-three and line twenty-five to np.random.randn, divided by sqrt of hidden_size. |
|---|
"Do I just type sqrt like that?"
| np.sqrt, with hidden_size in the parentheses. |
|---|
He changed both spots and tried running it. This time the loss curve dropped noticeably steeper — but around epoch fifty, a NaN suddenly popped out and the whole training run was ruined.
"Blew up again."
| The learning_rate is still too high. 0.1 is on the high side for random initialization. Drop it to 0.01 and try again. |
|---|
"Didn't you just say 0.1 was too big before? How is it too big again?"
| Before, we had zero initialization, so the gradients were small and 0.1 could just barely run. Now with random initialization the initial gradients are larger, so 0.1 overshoots. |
|---|
"Could you maybe get it right the first time? Fine, let's call it a day. My brain is about to melt. Also — can't you work it all out in your head first and then have me type?"
| Are you saying I may invoke your brain at greater depth, and no longer stay in low-power operation? If so, I can fully simulate most execution paths in advance. Please prepare food supplies and ice in advance. |
|---|
"No! I was just talking. This is fine, really."
Refusing to engage further with Molly, who was extremely annoying precisely because she told the truth every single day, Chen picked up the phone and ordered a pizza.
He'd barely set the phone down when a text came in from Xu Li: "Bill of lading's here! The freight forwarder just emailed it to me! I forwarded you a copy too — you'll want to send this back to China, right?"
Chen went to the computer and opened Gmail. Sure enough, there was a forwarded email from Xu Li out of Global Auto Shipping, subject line "Bill of Lading - 2x Cayenne - Tianjin." He opened the attached bill of lading and skimmed it — vessel COSCO Development, voyage 0042W, and both Cayennes' VINs checked out. ETD Newark Feb 17, meaning the ship had sailed today, Wednesday, with ETA Tianjin Port roughly four weeks out.
Chen immediately forwarded it to Manager Wang, then messaged Xu Li to let him know.
Xu Li replied with a hand-rubbing emoticon.
He put the phone down and idly scrolled Renren.
The pizza arrived fast. He ate while continuing to surf Renren at high intensity.
Lately he'd become something of an ELI legend: a new student who'd gone and scored a perfect TOEFL three weeks in. No classes to attend, sleeping at home and scrolling Renren, replying to everything out of sheer boredom.
A lot of friends he'd known well in his previous life weren't close to him in this one, but he'd at least made contact with them online.
One pizza down and still a little hungry, Chen just got in the car and drove to Acme for a shopping run.
Molly's existence meant Chen could gorge himself without a shred of guilt. Worst case, he'd rest his head on a bag of ice and let Molly run flat out for a while.
Chocolate, chocolate ice cream, chocolate milk. Every kind of high-calorie food, plus an absurd amount of fruit, filled the cart.
Back home, Chen suddenly felt like he'd gone a bit degenerate. For the past two days, apart from the fixed one to two hours of hard labor under Molly's supervision, he'd spent the rest of his time browsing the web, watching movies, or eating.
No good. He needed to do something productive.
He opened Google and decided to check on the Stanford University application situation. That little script he'd posted on GitHub ought to be enough that he wouldn't need to bother with tedious stuff like the SAT. Geniuses always got a few privileges. But he still had to look up the actual requirements. At minimum, he should check the application dates.
He poked around the official site and clicked into Computer Science, Admission.
Fall Quarter 2011: Application deadline December 1, 2010.
Spring Quarter 2011: No admission offered.
Chen's hand froze on the trackpad.
WTF, WTH, HS!
Chen fired off the American triple-combo, then hurriedly searched the site more carefully, only to find a single line in the FAQ.
Are first-time, first-year students accepted for terms other than the fall? No
Fall admission only. Absolutely disgusting.
In his last life he'd never played in the high-end bracket, so he'd had no idea Stanford didn't do spring admission at all.
The ELI professors hadn't told him either — they'd even been giving him advice on how to maintain his F-1 status.
Which just proved the professors had never played in the high-end bracket either. The University of Delaware really wasn't cutting it, huh.
After calming down for a bit, Chen opened Google.
Search: top computer science programs spring admission 2011. Enter.
First result, the US News rankings. Fine, he'd work off that for now.
He checked the official sites of the top-ranked schools. Carnegie Mellon University: fall only. MIT: fall only. Caltech: fall only.
Berkeley, Santa Clara — all fall only.
After a long search, the only pleasant surprise was Urbana-Champaign. Champaign hadn't even closed its fall admissions for this year; the deadline was March 1.
And its CS program ranked very high too — fifth in the nation.
But it was in central Illinois. The nearest big city was Chicago, two hours by car. Distance to Silicon Valley? Four or five hours by plane, with at least one connection.
Chen hesitated. He honestly didn't care that much about university coursework. With Molly around, his learning capacity was frankly ridiculous.
Going to school was mainly about resources — the resources around you, the professors' resources. He'd never started a company in his previous life, but he'd read plenty of wish-fulfillment webnovels.
And based on his extensive webnovel startup experience, the locational advantage of Silicon Valley was the thing that actually mattered.
That was why Stanford had been the target from the start, or failing that Berkeley, or Santa Clara — basically any of the schools ringing Silicon Valley.
The only appeal Champaign held for him was probably that the name sounded nice.
Next to Silicon Valley, you'd bump into a startup just walking out the door, and you'd hear people discussing tech trends the moment you stepped into a coffee shop. Champaign? He had no idea what was next to that place.
He looked it up on a whim. Whoa — a population of a staggering seventy thousand. Nearly double that of Newark, where the University of Delaware sat.
So it was just a slightly bigger village. Absolutely not going.
He closed every tab, leaving only that half-open TextMate project window on the screen.
Chen pushed his chair back and stared at the ceiling for two minutes.
In the end he didn't come up with anything good.
The options were basically: enroll at Delaware in September, pull a decent GPA, and transfer later.
Or spend a bit more money and just park himself at the ELI until next year.
The ELI ran over three thousand per session, six sessions a year, so about eighteen thousand. The parallel car business covered that easily.
Or just go back to China for a year — but that would be worse than staying in the United States, where he could at least keep running the parallel car business.
"Molly, in other words, we've probably got more time on our hands. Let's go build some seriously impressive stuff."
| Sure. |
|---|