UNSW Sydney · FACULTY OF COMPUTER SCIENCE

INFS3822 Chap.8 Deep Learning for Structured Data

- one subject, every graph, every model, every mark
8 Chapters3-page Bible
Our own words - no uploaded lecturer files
Updated for this semester
Chapter 8 of 10 · INFS3822

Deep Learning for Structured Data

Neural networks transform inputs through learned weights, biases and activations. This chapter traces one forward pass before scaling to fully connected networks, recurrent networks, LSTMs and transformers. It explains transfer learning and fine-tuning, compares deep learning with traditional baselines, and treats data volume, computation, transparency and deployment as reasons that must justify added depth.

In this chapter

What this chapter covers

  • 01

    Weights and biases

  • 02

    Activation functions

  • 03

    Fully connected networks

  • 04

    RNN and LSTM sequences

  • 05

    Transformer attention

  • 06

    Transfer learning

  • 07

    Fine-tuning choices

  • 08

    Deep versus traditional models

Worked example · free

Compute one sigmoid neuron

Q [3 marks]. For x1 = 0.6, x2 = 0.2, weights 1.5 and -0.5, and bias 0.1, compute z and sigmoid output. (3 AskSia practice marks) The mark allocation attached to this calculation is not a university marking scheme.
Each connection carries a learned weight into a hidden neuron, which adds a bias and applies an activation before passing a signal forward.Each connection carries a learned weight into a hidden neuron, which adds a bias and applies an activation before passing a signal forward. The output layer converts the learned representation into task-specific predictions. inputsweighted hidden layeroutputsx1x2x3class Aclass B
Each connection carries a learned weight into a hidden neuron, which adds a bias and applies an activation before passing a signal forward. The output layer converts the learned representation into task-specific predictions.
  • +1z = 1.5 x 0.6 + (-0.5) x 0.2 + 0.1 = 0.9 - 0.1 + 0.1 = 0.9.
  • +1sigmoid(z) = 1 / (1 + exp(-0.9)) = approximately 0.711.
  • +1At threshold 0.70 the case is positive; at 0.75 it is negative. The threshold remains a decision policy.
The pre-activation is 0.9 and the sigmoid output is about 0.711.
Sia tip — Separate the weighted sum, activation and threshold so a sign error cannot hide across steps.
Glossary

Key terms

Weight
A learned parameter controlling the strength and direction of a connection between units.
Bias
A learned additive parameter that shifts a neuron's pre-activation value.
Activation function
A transformation applied to a neuron's weighted sum to produce its outgoing signal.
Fine-tuning
Updating selected parameters of a pretrained model for a new task or domain.
FAQ

Deep Learning for Structured Data FAQ

When should I consider a deep network?

Consider it when the data volume and pattern complexity support representation learning that simpler baselines cannot capture adequately. The proposal should also address computation, latency, interpretability and monitoring. Compare against a credible conventional model before claiming that depth adds value.

Why do RNNs and LSTMs suit sequences?

They are designed to carry information across ordered time steps, allowing earlier observations to influence later predictions. Use time-respecting evaluation and compare with lag-based baselines. Sequence architecture is justified by temporal structure, not simply by the presence of many columns.

How does transfer learning help with limited labels?

A pretrained model provides a representation learned from a larger source task. Replace the output for the local task, freeze earlier layers, train the new head and evaluate on held-out local evidence. Fine-tune selectively when validation shows the representation needs adaptation.

What does a one-neuron calculation teach?

It separates inputs, weights, bias, activation and threshold so every stage can be checked. Changing one weighted input alters the pre-activation, while a nonlinear activation means the probability change is not constant. The exercise explains the mechanics of a forward pass without turning a weight sign into a causal claim about the business.

Study strategy

Assessment move

Compute a one-neuron forward pass until weights, bias, activation and threshold are distinct. Make an architecture table linking fully connected networks to tables, recurrent networks to sequences and transformers to attention-based dependencies. For each deep model, name a simpler baseline and the evidence needed to justify complexity. Begin with arithmetic.

Write the weighted sum, substitute every input and weight, add the bias, apply the activation and only then compare the output with a decision threshold. Change one input while holding the others fixed and observe that a sigmoid probability does not change by a constant amount across its range. Explain why a weight sign describes the model calculation but does not establish a causal effect.

Scale the picture from one neuron to a layer by tracking input shape, number of units and output shape. Draw arrows showing which parameters are learned and which settings, such as architecture or threshold, are selected through validation. For architecture choice, start from data structure.

A fully connected network can model structured tables; recurrent or long short-term memory networks explicitly process order; transformers use attention to represent dependencies; convolutional networks exploit local spatial structure. Treat these as design matches, not a ladder of prestige. Compare each with a simpler regression, tree or engineered-feature baseline on identical evidence.

For transfer learning, write a staged plan: replace the task-specific head, freeze earlier representation layers, train on local labels, inspect validation, then test limited fine-tuning if a domain gap remains. Record which layers change and protect the final test set from repeated selection. Diagnose overfitting from the relationship between training and validation behaviour, not from depth alone.

Consider regularisation, early stopping, simpler architecture, more representative data and leakage checks before celebrating a lower training loss. Close every deep-learning answer with cost and control: computation, data demand, inference latency, interpretability, subgroup errors and monitoring. Complexity is justified only when its unseen benefit matters to the task and survives those constraints.

Working through Deep Learning for Structured Data in INFS3822? Sia is AskSia’s AI Computer Science tutor — ask any INFS3822 Deep Learning for Structured Data question and get a clear, step-by-step explanation grounded in how INFS3822 is taught and assessed. Read this chapter free, then take your hardest questions to Sia.

A+Everything unlocked
Unlocks this Bible + all 103 of your UNSW Sydney subjects - and 1,000+ Bibles across every Australian university.
Sia - your INFS3822 tutor, unlimited, worked the way the exam marks it
The full 3-page Bible + practice bank with worked solutions
Chrome extension - sync your LMS so Sia knows your deadlines
Bilingual EN / Chinese on every Bible and every Sia answer
$0.99 Trial
30-day money-back · cancel in one tap · how it works
INFS3822 · Artificial Intelligence for Business Analytics - independent study guide on the AskSia Library. More UNSW Sydney subjects · Microeconomics across all universities