0% found this document useful (0 votes)
19 views2 pages

Deep Learning Assignment for B.Tech CSE

Uploaded by

Aayu Gaming
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views2 pages

Deep Learning Assignment for B.Tech CSE

Uploaded by

Aayu Gaming
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Lamrin Tech Skills University, Punjab

University School of Engineering & Technology


[Link] CSE (AI & ML) – 5th Semester
Assignment - 1
UGCS-333 (Deep Learning)

Date: 3rd September 2025


Submission Date: on or before 9th September 2025, 5:00 PM
Maximum Marks: 15

Instructions
• Assignment should be handwritten.

• A scanned copy of the sheets should be submitted in PDF format.

• Submission can be done via e-mail, WhatsApp, or as a hard copy.

• The PDF file should be named with Course, Name, and Roll No.

• Submissions after the due date will be awarded 0 marks.

Questions
1. Since a single perceptron cannot solve the XOR problem, does it mean the percep-
tron model is useless? Can non-linear activation functions alone solve XOR without
multiple layers? Discuss.

2. If you were to design a perfect activation function, what mathematical properties


should it possess? Based on this analysis, critically evaluate the suitability of com-
monly used activation functions such as Sigmoid, Tanh, ReLU, Leaky ReLU, and
Softmax.

3. (a) If we remove all activation functions from a deep neural network, what happens
to the model’s capacity? Why is a network without activation functions unable
to learn complex patterns?
(b) You are building a binary classification model and observe that the output
layer with a sigmoid activation is producing probabilities very close to 0 or 1
(e.g., 0.001 or 0.999), even for uncertain cases. What could be causing this
issue, and how would you modify your activation strategy?

4. “Feed forward is only about computation, not learning.” Do you agree? Explain
with the help of a simple neural network diagram, showing how inputs are processed
through layers to produce an output.

1
5. Consider the two neural networks (NNs) shown in Figures 1 and 2, with ReLU
activation (ReLU(z) = max{0, z}, ∀z ∈ R). R denotes the set of real numbers. The
connections and their corresponding weights are shown in the Figures. The biases
at every neuron are set to 0. For what values of p, q, r in Figure 2 are the two NNs
equivalent, when x1 , x2 , x3 are positive?

Figure 1

x1
1
2
1 3
2
1

x2
2
1

1 3
2
x3 1

Figure 2

x1
p

q
x2

r
x3

Common questions

Powered by AI

To determine the equivalence of two networks with ReLU activation, you need to ensure that the weighted sums at each layer produce identical outputs for the same inputs. For positive inputs x1, x2, x3, the signs and magnitudes of parameters must align such that the transformation at each layer is equivalent across networks. This often requires systematically equating each output node's ReLU activation and solving resulting equations for parameters p, q, r to match the networks' overall structure and resultant outputs .

The statement refers to the fact that feedforward operation involves passing inputs through the network layers to compute outputs without altering the network parameters. Learning, however, occurs during backpropagation where the network updates its weights based on the loss calculated from the output. While feedforward is crucial for forward computations, the learning step is distinct, relying on error correction to adjust weights and biases for improved performance in future predictions .

A single perceptron cannot solve the XOR problem because it is a linearly separable problem, and a perceptron can only classify linearly separable data. This limitation, however, doesn't make the perceptron model useless, as perceptrons are foundational in learning conceptual models and serve as building blocks for more complex networks. Non-linear activation functions cannot alone solve the XOR problem without multiple layers because the XOR requires a multi-layer structure to create non-linear decision boundaries .

An ideal activation function should exhibit properties such as non-linearity, smoothness (differentiability), bounded output, non-saturating gradients, and computational efficiency. Sigmoid and Tanh suffer from vanishing gradients due to saturation, ReLU is desirable for its sparse activation and computational efficiency but has issues like dying ReLU, Leaky ReLU introduces a slight slope to prevent dying units, and Softmax is suitable for output layers in classification tasks providing a probability distribution but isn't used in hidden layers due to its computational intensity .

Probabilities close to 0 or 1 in sigmoid activation outputs generally indicate that the model is highly confident in its classifications, often due to issues like imbalance in the dataset, overfitting, or improper initialization of weights leading to saturation. Addressing this involves strategies like regularizing the model to prevent overfitting, using batch normalization to stabilize inputs to each layer, or adjusting the architecture or learning rate to promote a balanced learning process .

Removing activation functions from a deep neural network essentially converts it into a linear model, dramatically reducing its ability to capture complex patterns. The network's capacity is limited to linear transformations, meaning it cannot represent non-linear functions or perform tasks requiring decision boundaries beyond simple linear separations. This linearity constraint prevents the network from generalizing data that isn't linearly separable, thereby hindering learning complexity in tasks like image recognition or language processing .

You might also like