Natural Language Processing
CSE · Final · Spring 25
Batch 60
Read the questions as text
Read off the PDF by AI, so it may have mistakes. The PDF is the original.
Daffodil International University
Faculty of Science & Information Technology
Department of Computer Science and Engineering
Final Examination, Spring-2025
Course Code: CSE445, Course Title: Natural Language Processing
Level: 4 Term: 1 Batch: 60
Time: 2 Hours
Marks: 40
Answer ALL Questions
[The figures in the right margin indicate the full marks and corresponding course outcomes. All portions of each question must be answered sequentially.]
1. a) Draw the architecture of LDA? Is Topics Modeling and Topic Distribution are same, Justify your answer? | [5] | CO2
b) Apply Topic Modeling for the following scenarios when corpus contains three document for two topics Topic 1: Animals and wildlife Topic 2: Sports for following conditions; alpha=0.1 and beta=0.01.
D1: "Lion hunts gazelle in the savanna."
D2: "Elephants and giraffes live in Africa."
D3: "Soccer players score goals in the stadium." | [10] |
2. Consider a neural network with two hidden layers, using a sigmoid activation function. The network performs a regression task, and the output layer has a single neuron. Now draw the Neural Networks and Apply chain rule to update the weights(w11) when learning rate 0.01 You are given the following:
Inputs: x1 = 0.5, x2 = 0.3 and output=1
Weights and Biases:
Input to Hidden Layer 1(h1,h2,h3): w11 = 0.4, w12 = 0.6 w21 = 0.5,
w22 = 0.9 w13 = 0.3, w23 = 0.7 bh1 = 0.1, bh2 = 0.2, b h3 = 0.1
Hidden Layer 1 to Hidden Layer 2(h4,h5):
w41 = 0.4, w42 = 0.5, w31 = 0.6 w621 = 0.7, w22 = 0.9
,w32= 0.8,bh4 = 0.2, bh5 = 0.1
Hidden Layer 2 to Output Layer: w51 = 0.3, w51 = 0.7, bo = 0.1 | [10] |
3. a) Explain how Recurrent Neural Networks (RNNs) are used in language modeling for next-word prediction. Illustrate your answer with a simple example. | [4] | CO3
b) Discuss the limitations of standard RNNs and how they can be addressed using advanced architectures such as LSTM. | [4] |
c) Discuss Large Language Models (LLMs) by explaining their definition, core architectural components, and typical use cases. In your response, describe the roles of token embedding's, attention mechanisms, and decoder blocks within the LLM architecture. Additionally, explain how prompt phrasing can influence the outputs of an LLM, providing at least two clear examples to support your explanation. | [7] |