VelocerОткрыть приложение

Velocer › Карточки › University of Illinois Urbana-Champaign › CS 440: Artificial Intelligence · UIUC

CS 440: Artificial Intelligence · UIUC

CS 440, artificial intelligence. made these for myself, figured i'd share. · автор: grainger_grind · 127 карточек

University of Illinois Urbana-Champaign

Учить эту колоду Встроить

  1. What is the domain of a random variable?The set of possible values the variable can take, such as traffic-light ∈ {red, yellow, green}.
  2. What does a probability distribution do?It assigns probabilities to all events of interest.
  3. State Kolmogorov's three axioms of probability.Probabilities lie between 0 and 1, P(True) = 1, and for mutually exclusive A and B, P(A ∨ B) = P(A) + P(B).
  4. What is the inclusion–exclusion rule for P(A ∨ B)?P(A ∨ B) = P(A) + P(B) − P(A ∧ B).
  5. What is the probability of an impossible event, P(False)?P(False) = 0, derived from Kolmogorov's axioms.
  6. How do the probabilities of all values of a single variable relate?They sum to 1.
  7. Why do probabilistic models usually avoid assigning exact zero probabilities?Unobserved events are treated as rare rather than impossible, so exact zeros are avoided.
  8. What is marginalization (summing out)?Computing P(X = x) = Σₖ P(x, yₖ), summing the joint distribution over the other variable.
  9. Give the definition of conditional probability P(A | C).P(A | C) = P(A, C) / P(C).
  10. How do you compute a conditional distribution from a joint table?Take the relevant row of the joint table and renormalize it so it sums to 1.
  11. What is the definition of independence for events A and B?P(A, B) = P(A) P(B).
  12. Which is more common in practice: independence or conditional independence?Conditional independence is much more common in practice.
  13. What is a token in text processing?A unit the algorithm operates on: a word, word piece, or normalized word.
  14. What does the cleaning step of text preprocessing involve?Splitting at whitespace, separating punctuation, and rejoining words broken across lines.
  15. What is word segmentation?Grouping characters into words for languages written without spaces, such as Chinese; it also refers to splitting speech transcripts or complex words.
  16. Why can a corpus end up with too many distinct words?Rich morphology (e.g., Turkish), mixed languages, numbers, typos, and rare words all create many distinct word forms.
  17. What does stemming do?It strips prefixes and suffixes to reduce a word to a stem, e.g., help, helping, helpful → help; happiness → happi.
  18. Must the output of stemming be a real word?No—stemming output need not be a valid word (e.g., happi).
  19. Does normalization always improve results?No—normalization such as stemming, lowercasing, and unifying spelling variants can help or hurt, so both ways should be tested.
  20. What are morphemes?Meaningful parts of a word, such as un-answer-able or pre-condition-s.
  21. Give an example of stemming reducing several related words to one stem.help, helping, helpful all reduce to help.
  22. Why are rule-based (discrete feature) classifiers often inferior to learned statistical models?Rule-based classifiers are fragile, incomplete, and require expert hand-crafting, while learned statistical models handle noisy, real-valued features better.
  23. What are typical limitations of training data?Training data is uncertain, contains errors, is selectively incomplete, and may be unlabeled; probabilities come from observation plus modeling assumptions.
  24. In Bayes rule, what does each factor represent: posterior, likelihood, prior?Posterior = P(C|A), likelihood = P(A|C), prior = P(C), with P(A) as the normalization term.
  25. What is the MAP estimate?The maximum a posteriori estimate picks the cause maximizing P(evidence|cause)P(cause).
  26. How does the maximum likelihood estimate (MLE) differ from MAP, and when is it reasonable?MLE drops the prior; it is reasonable when priors are unknown but poor when class frequencies differ a lot.
  27. What conditional independence assumption does Naive Bayes make?It assumes effects are conditionally independent given the cause: P(C|E1..En) ∝ P(C)∏k P(Ek|C).
  28. How many parameters does Naive Bayes need with n binary features, and why is that an improvement?It needs O(n) parameters instead of 2^n, making the model tractable for many features.
  29. Why and how do we compute Naive Bayes in log space?Multiplying many small probabilities can underflow, so we sum the logs of the probabilities instead.
  30. What is the bag-of-words representation and what is its main weakness?It classifies a document by word frequencies while ignoring word order, so it misses distinctions like "not poisonous."
  31. How do bigrams and longer n-grams improve on bag of words?They capture some word order, unlike bag of words which ignores order entirely.
  32. What is Laplace smoothing and why is it needed?It adds a positive constant α (usually at most 1) to every count so unseen words get nonzero probability, then renormalizes: P(w|C) ∝ count(w)+α.
  33. How should the smoothing constant α be chosen?Tune α on development data.
  34. What is the standard train/tune/test workflow?Train on training data, tune on development data, and report results on held-out test data.
  35. What must a state include in a search problem?Everything relevant to reaching the goal (e.g., inventory, river level), not just location. For missionaries and cannibals, the state is (missionaries left, cannibals left, boat side).
  36. What is the frontier in generic search?A queue of states yet to be expanded. You pop a state, expand its neighbors, and add unseen ones; the frontier type determines the algorithm.
  37. What does BFS use as its frontier, and what are its properties?A FIFO queue. It finds shortest paths in edge count when costs are uniform, but it is memory heavy.
  38. What are the tradeoffs of DFS?It uses low memory but may wander or loop. Length-bounded DFS cuts paths at length k, and iterative deepening reruns bounded DFS with k = 1, 2, 3, ...
  39. What does iterative deepening search combine?It combines DFS's low memory use with BFS-like optimality by rerunning length-bounded DFS with increasing depth limits.
  40. How does uniform cost search order the frontier?By path cost g using a priority queue. It handles unequal edge costs; Dijkstra's algorithm is the same idea but computes distances to all states.
  41. What is the evaluation function for A*?f(x) = g(x) + h(x), the cost so far plus the estimated remaining cost. The frontier is ordered by f.
  42. What makes a heuristic admissible, and why does it matter?It never overestimates the true distance to the goal. With an admissible heuristic, A* returns an optimal path.
  43. How are heuristics usually derived?By relaxing the problem—for example, straight-line distance ignores roads and obstacles. A good heuristic is also quick to compute.
  44. What does beam search do, and what does it sacrifice?It keeps only the best N frontier states, making search faster but losing the optimality guarantee.
  45. Is greedy nearest-waypoint routing optimal?No. Visiting multiple waypoints by choosing the nearest one each time is not optimal in general.
  46. What are the main parts of a mobile robot?Power (battery), motors, a brain (on board or remote), sensors, and effectors such as wheels, legs, propellers, arms, or grippers.
  47. What types of sensors are commonly used on mobile robots?Passive cameras, active IR or sonar sensors, and touch bumpers or whiskers.
  48. Why do robots often use redundant sensors?Because each type of sensor fails differently, so combining them improves reliability.
  49. Why are accurate robot arms heavy relative to their payload?Accurate arms need stiff links, and stiff links add weight, so they are heavy for small payloads.
  50. How many degrees of freedom does a rigid object in 3D have, and what are they?Six: x, y, z, roll, pitch, and yaw.
  51. How many degrees of freedom does the human arm have?Seven.
  52. What is configuration space in robot planning?The space of robot configurations (such as center positions or joint angles) with obstacles expanded accordingly, so planning becomes moving a point.
  53. What is inverse kinematics?The process of going from a desired hand position back to the joint angles that achieve it.
  54. Why can inverse kinematics have multiple solutions, and how should one be chosen?Several joint configurations may reach the same hand position; prefer solutions away from joint limits.
  55. What is a visibility graph roadmap, and what is its drawback?A planning roadmap that gives shortest paths but whose paths graze obstacles.
  56. What is a generalized Voronoi diagram roadmap, and what is its trade-off?A roadmap of paths equidistant from obstacles; it is safe but produces longer paths.
  57. What is cell decomposition in robot planning?A roadmap method that divides space into cells (e.g., trapezoids) with waypoints for planning.
  58. What makes modern robot environments challenging?They are learned via imperfect sensors, change over time, and contain other agents.
  59. What trade-off exists for safety near humans in robotics?Safety near humans trades off against ambition, limiting what robots can attempt.
  60. What are the three main task categories in natural language processing?Understanding text/speech into structured data, generating text/speech from structured data, and translating directly between forms.
  61. What are the layers of natural language, from lowest to highest?Speech/sound, low-level text (words, morphemes), mid-level (part of speech, parsing), and semantics (meaning, dialog).
  62. What distinguishes a deep NLP system from a shallow one?Deep systems build explicit meaning representations, while shallow systems work on lower levels of language.
  63. What is an end-to-end neural NLP system?A neural network that trains several layers of language processing as one unit.
  64. What is the Markov assumption in natural language processing?Only the last few items matter for the next decision, such as the last 1–3 words for predicting the next tag.
  65. What approach did early dialog systems like SHRDLU (1971) and Infocom games take?They used restricted input and canned output, with the sophistication residing in the world model.
  66. How do people adapt to a limited but consistent dialog system?People adapt their language to fit the system's limited but consistent capabilities.
  67. Why can't you simply tag each word with its most common tag?The most common tag may be wrong in context, and some valid tags never appear in training data.
  68. What is the general form of a linear classifier's score function?Score = w₁x₁ + … + wₙxₙ + b. For binary classification it is compared to a threshold; for multi-class, the highest-scoring class is chosen.
  69. What is the decision boundary of a linear classifier?The set of points where f(x) = T, which forms a line (in 2D) or a hyperplane (in higher dimensions).
  70. What does it mean for data to be linearly separable?A hyperplane can split the classes. Remapping features (e.g., to polar coordinates) can make data separable, though messy data may be only nearly separable.
  71. In differentiable linear units, what two components are separated?The activation (e.g., sigmoid, tanh, ReLU) and the loss (e.g., squared error, cross-entropy).
  72. Give the formula for the sigmoid activation.1 / (1 + e^(−x)).
  73. Give the formula for squared-error loss.(y − ŷ)².
  74. Give the formula for cross-entropy loss for binary classification.−(y log ŷ + (1 − y) log(1 − ŷ)).
  75. How are differentiable linear units trained?By gradient descent on the chosen loss.
  76. What does the softmax function compute?e^(vᵢ) / Σⱼ e^(vⱼ), turning scores into a probability-like vector (a soft argmax).
  77. What is softmax often described as?A soft argmax: it converts raw scores into a probability-like vector.
  78. How does a multi-class linear classifier choose a class?It computes a score for each class and picks the highest-scoring class.
  79. What is the role of hidden layers in a neural network?Multiple layers of hidden units, each with a nonlinear activation, transform the input; a single loss is computed at the end.
  80. Why must neural networks use nonlinear activations?Without nonlinearity, stacked layers collapse into a single linear function, so the network cannot represent complex nonlinear mappings.
  81. What does the universal approximation theorem say about one hidden layer?A single hidden layer can approximate any continuous function given enough units, though deep networks are often easier to design and train.
  82. How does network size scale compared to kNN?Network size grows with the number of weights, not with the training data, unlike kNN which needs the data at prediction time.
  83. How do deep vision networks build up features?They compose features hierarchically, from edges to parts to whole objects.
  84. What is the gradient descent update rule for a weight?w_i ← w_i − α ∂J/∂w_i, where α is the learning rate and J is the loss.
  85. What problem do sigmoid and tanh units have?They saturate, causing gradients to become very small and slowing training.
  86. Why is ReLU often preferred over sigmoid/tanh?ReLU trains better and avoids saturation, but it can 'die' on negative inputs since its gradient is zero there.
  87. What is leaky ReLU and why use it?A ReLU variant that outputs 0.01x for negative inputs, preventing units from dying completely.
  88. What defines a convolutional layer?It shares weights across image positions and produces several channels per position.
  89. How does dropout help prevent overfitting?Each unit randomly ignores training inputs, forcing other units to cope and preventing co-adaptation.
  90. What is data augmentation and why is it used?Adding transformed copies of the training data (e.g., rotated or shifted images) to reduce overfitting.
  91. What are some practical uses of word meaning in NLP?Answering questions, determining word classes, prediction, and judging fluency.
  92. Why are one-hot vectors a wasteful representation of word meaning?Their length equals the vocabulary size, so each vector is huge and sparse with no notion of similarity between words.
  93. Why are logic-style dictionary definitions inadequate for representing word meaning?They are hard to build, incomplete, and buggy—for example, not all birds fly, so strict definitions fail.
  94. What aspects are included in a word's meaning beyond its basic sense?Contrasts with neighboring words, grammatical properties, and connotation (e.g., plump vs. fat).
  95. What does the Principle of Contrast state?Different forms imply different meanings.
  96. How are count-based word vectors built and compared?From co-occurrence counts with context words, compared using cosine similarity.
  97. What does a cosine similarity of 1 versus 0 indicate?1 means the vectors point in the same direction; 0 means they are perpendicular (unrelated).
  98. Why do count-based vectors stay within 90 degrees?Because counts are non-negative, so cosine similarity between count vectors is never negative.
  99. What does PMI (pointwise mutual information) do for co-occurrence vectors?It normalizes counts by how often words co-occur compared to chance, highlighting meaningful associations.
  100. What is the purpose of SVD in vector semantics?It compresses long sparse count vectors into short dense vectors.
  101. What does word2vec (skip-gram) learn and how?It learns embeddings directly by making focus/context pairs similar, using negative sampling.
  102. Why is negative sampling used in word2vec?It samples random frequency-based non-context words so all words don't collapse to a single vector.
  103. What hyperparameter in word2vec controls which words count as context?The context window size, which is tuned.
  104. Why are positional encodings needed in transformers?Transformers otherwise treat input as a bag of tokens, so positional encodings add order information.
  105. What is the key weakness of plain RNNs?Gradients shrink as they propagate backward through time, so early inputs fade from the hidden state.
  106. How do gated RNNs like LSTM and GRU improve on plain RNNs?They manage information flow better, mitigating the vanishing gradient problem.
  107. What is the role of the encoder in an encoder–decoder architecture?It summarizes the input into a context vector that the decoder uses to produce output.
  108. How does attention score each earlier token?Dot products measure each earlier token's similarity to the current position.
  109. How does attention use its similarity scores?The scores become weights that produce a weighted average of the earlier tokens' information.
  110. What is the purpose of an embedding layer in a sequence model?It turns tokens into vectors that the model can process.
  111. What problem does reinforcement learning solve?Choosing actions when feedback is delayed and the environment is uncertain.
  112. What are the four components of a Markov Decision Process (MDP)?States S, actions A, reward R(s), and transition probabilities P(s'|s,a).
  113. What is a policy in an MDP?A function π(s) that gives the action to take in each state.
  114. Why can actions 'misfire' in an MDP?Transitions are stochastic: an action may lead to an unintended state (e.g., forward 80% of the time, sideways otherwise).
  115. How do small negative background rewards affect an agent?They push the agent toward the goal, since lingering costs accumulate over time.
  116. What happens with very negative background rewards?The agent becomes reckless, since it has little to lose by taking risks.
  117. What happens with high background rewards?Urgency is removed, so the agent may not bother reaching the goal.
  118. Why is a discount factor γ ∈ [0,1) used?It makes infinite sums of rewards converge as a geometric series.
  119. State the Bellman equation for utility of a state.U(s) = R(s) + γ max_a Σ_s' P(s'|s,a) U(s').
  120. How does value iteration work?Start with U = 0 and repeatedly apply the Bellman update until the values converge.
  121. What two steps does policy iteration alternate between?Policy evaluation (compute U for the current policy) and policy improvement (pick the best action under U).
  122. What is model-based reinforcement learning?Estimating P and R from counts while acting, then solving the resulting MDP.
  123. Why is pure exploitation risky in model-based RL?It is risk-averse and may never gather information about untried actions, so exploration is added.
  124. How is exploration typically added in model-based RL?With some probability, choose an action other than the current best.
  125. What does Q-learning learn, and how does it differ from model-based RL?It learns Q(s,a) directly (model-free) without estimating P and R.
  126. Write the Q-learning temporal-difference update.Q(s,a) ← Q(s,a) + α [R(s) + γ max_a' Q(s',a') − Q(s,a)].
  127. How does a Q-learning agent select actions?It chooses high-Q actions while still exploring.

Velocer бесплатен: интервальное повторение и ваши собственные карточки из любого документа.

PDF to flashcards · Lecture to flashcards · Practice exam · Syllabus study plan · Anki import

Другие колоды University of Illinois Urbana-Champaign