1CS 188: Artificial IntelligenceFall 2009Advanced Applications:Robotics / Vision / LanguageDan Klein – UC BerkeleyMany slides from Pieter Abbeel, John DeNero1Announcements Contest: amazing stuff – 59 teams! Final qualifying tournament almost done running! Congrats to current qualifiers! Send us your info ASAP Tonight: seeding tournament Wednesday NOON: final tournament Thursday: final results in class!2Today3Motivating Example How do we specify a task like this?[demo: autorotate / tictoc]Autonomous Helicopter Flight Control inputs: alon: Main rotor longitudinal cyclic pitch control (affects pitch rate) alat: Main rotor latitudinal cyclic pitch control (affects roll rate) acoll: Main rotor collective pitch (affects main rotor thrust) arud: Tail rotor collective pitch (affects tail rotor thrust)Autonomous Helicopter SetupOn-board inertial measurement unit (IMU)Send out controls to helicopterPosition2Helicopter MDP State: Actions (control inputs): alon: Main rotor longitudinal cyclic pitch control (affects pitch rate) alat: Main rotor latitudinal cyclic pitch control (affects roll rate) acoll: Main rotor collective pitch (affects main rotor thrust) arud: Tail rotor collective pitch (affects tail rotor thrust) Transitions (dynamics): st+1= f (st, at) + wt[f encodes helicopter dynamics][w is a probabilistic noise model] Can we solve the MDP yet?Problem: What’s the Reward? Rewards for hovering: Rewards for “Tic-Toc”? Problem: what’s the target trajectory? Just write it down by hand?8[demo: hover][demo: bad]Apprenticeship Learning Goal: learn reward function from expert demonstration Assume Get expert demonstrations Guess initial policy Repeat: Find w which make the expert better than Solve MDP for new weights w:9Pacman Apprenticeship! Demonstrations are expert games Features defined over states s Score of a state given by: Learning goal: find weights which explain expert actions[demo: pac apprentice]Helicopter Apprenticeship?11[demo: unaligned]Probabilistic Alignment Intended trajectory satisfies dynamics. Expert trajectory is a noisy observation of one of the hidden states. But we don’t know exactly which one.Intended trajectoryExpert demonstrationsTime indices3Alignment of Samples Result: inferred sequence is much cleaner!13[demo: alignment]Final Behavior14[demo: airshow]What is NLP? Fundamental goal: analyze and process human language, broadly, robustly, accurately… End systems that we want to build: Ambitious: speech recognition, machine translation, information extraction, dialog interfaces, question answering… Modest: spelling correction, text categorization…15Problem: Ambiguities Headlines: Enraged Cow Injures Farmer With Ax Hospitals Are Sued by 7 Foot Doctors Ban on Nude Dancing on Governor’s Desk Iraqi Head Seeks Arms Local HS Dropouts Cut in Half Juvenile Court to Try Shooting Defendant Stolen Painting Found by Tree Kids Make Nutritious Snacks Why are these funny?Parsing as Search17Grammar: PCFGs Natural language grammars are very ambiguous! PCFGs are a formal probabilistic model of trees Each “rule” has a conditional probability (like an HMM) Tree’s probability is the product of all rules used Parsing: Given a sentence, find the best tree – search!ROOT → S 375/420S → NP VP . 320/392NP → PRP 127/539VP → VBD ADJP 32/401…..184Syntactic AnalysisHurricane Emily howled toward Mexico 's Caribbean coast on Sunday packing 135 mph winds and torrential rain and causing panic in Cancun, where frightened tourists squeezed into musty shelters .19[demo]Machine Translation Translate text from one language to another Recombines fragments of example translations Challenges: What fragments? [learning to translate] How to make efficient? [fast translation search]21525Levels of TransferMachine Translation29[demo:
View Full Document