Kamusta ka? I am Mark Anthony A. Ozaeta and I will be your guide. Together we'll look closely at one small part of an LSTM network, the forget gate. It takes about 5 to 9 minutes, and you set the pace.
What you will be able to do
- Explain in your own words what the forget gate does and why its output stays between 0 and 1.
- Calculate the memory that is kept when you are given the forget values and the old cell state.
- Apply the idea to a new situation: decide what the gate should keep or drop when a sentence changes topic.
Quick check to pick your path
Ungraded, about 20 seconds. It only suggests a path. You can change it.
Before we start: make a prediction
A language model reads this passage one word at a time:
Ana is a nurse in Los Baños. Ben, a teacher in Cebu, loves mornings. Every day before class, ___ drinks coffee.
To fill the blank, the model must stop treating Ana as the subject and carry Ben forward instead.
Take a guess. When the story moves from Ana to Ben, what should happen to the memory that says "the subject is Ana"? It's fine to be wrong. Guessing first helps the explanation stick.
On a narrow screen, swipe the diagram sideways. Simplified schematic: the output gate and the rest of the cell are left out on purpose.
Full transcript of the narration
Step 1 of 3Join the inputs
Follow the moving dashes. Both inputs travel into the same box. I'll talk you through it.
Step 2 of 3Squash every score into 0 to 1
Step 3 of 3Scale the memory
"If 4.0 becomes 0.4, where did the other 3.6 go?"
Think about it, then read on. The answer is in the diagram.
Show a reply
It is gone. Multiplication shrinks the stored value and the cell keeps no copy. That is why a forget value near 0 really does erase memory.
Model answer. The sigmoid turns each raw score into a keep-proportion between 0 and 1. Multiplying that proportion element-wise with the old cell state shrinks the values to forget (near 0) and preserves the ones to keep (near 1). It only scales the old memory. New information is added later by the input gate.
Expert fast-trackThe whole forget-gate path
Everything is on one diagram. Play the sequence, or read the diagram at your own pace.
Sigmoid explorer
Your turn: set the forget values
Worked example, from the diagram
C = [4.0, −2.0, 6.0] f = [0.10, 0.50, 0.90] ⇒ f ⊙ C = [0.4, −1.0, 5.4]
Task A · reach a target
Part-workedMove the sliders so the retained memory is about [0.0, −2.0, 3.0]. The result updates as you go.
Task B · a new situation
TransferSame passage as before. The model's memory holds three facts. The next sentence is: "Ben, a teacher in Cebu, loves mornings." How much of each fact should the forget gate keep?
Teach it to a classmate
Explaining something to another person is one of the best ways to find the gaps. Imagine a classmate who has not seen this lesson. Write two or three sentences for them.
Optional: post your explanation in your course forum and reply to one classmate's version. Comparing wordings is where the next round of learning happens.
Check your understanding
Three questions. You get feedback straight away and can try again.
Wrap-up
Salamat sa pag-aaral! You stepped through the forget gate, worked with its numbers and applied it to a new passage. Here is the idea in three lines.
- The gate turns the previous output and current input into one keep-proportion per memory value, always between 0 and 1.
- Multiplying by the old cell state erases what is near 0 and preserves what is near 1.
- This only shrinks old memory. The input gate adds new information next.
Design rationale workbench
The evaluand at a glance
- Material
- "Inside the Forget Gate": a self-contained interactive module with narration, captions and a transcript, built as one web page.
- Learners
- Adult, self-directed graduate students taking asynchronous machine-learning content (the audience analysed in Assessment 1), with mixed prior knowledge of vectors and activation functions.
- Purpose
- Redesign of the forget-gate segment of the 2023 LSTM explainer video, expanded from the 90-second storyboard into about 5 to 9 minutes of learning with practice and transfer.
- Outcomes
- LO1 explain the forget gate and its 0 to 1 range · LO2 compute the retained memory f ⊙ C · LO3 apply the gate to a new passage (transfer).
- Access conditions
- Assumed: mixed phones and laptops, variable or metered data, learners who cannot always play sound. Responses: one page, no media files, system fonts, captions and transcript, keyboard use, resizable text.
ADDIE: how each phase shaped the build
Analyse
Used the Assessment 1 diagnosis as the needs analysis: redundancy, spatial split-attention and no segmenting in the original video. Profiled the learners and their access conditions.
Shaped: scope (forget gate only), no-video format, optional captions, Guided and Expert paths.
Design
Started from the Assessment 1 storyboard (three frames), added learning outcomes, generative activities, social cues and an assessment sequence. Chose tools through outcome → method → attribute → tool.
Shaped: segmenting, anchored equations, dimming, fading from worked example to transfer.
Develop
Built the diagram as SVG, narration with the browser's speech engine, and all interaction in plain HTML, CSS and JavaScript. Wrote the narration to describe the diagram without repeating the on-screen formulas.
Shaped: file size, offline-tolerance, accessibility features.
Implement
Published as a link-shareable page that needs no login or install. Learners choose path, sound and text size, and settings persist on their device.
For future implementation: Integration into the course LMS may be explored once access to the LMS authoring tools becomes available.
Evaluate
Formative checks during development (below). The summative evaluation is the Part C rubric, applied to this page.
Outcome → method → attribute → tool
| Outcome | Method (how people learn it) | Attributes the tool must have | Tool choice |
|---|---|---|---|
| LO1 Explain the gate | Segmented, narrated worked example, then self-explanation and teach-back | User-paced steps; narration synchronised to highlights; equations anchored to nodes; free-text input with model answer | Custom SVG + JavaScript |
| LO2 Compute f ⊙ C | Worked example, then completion problem (fading) | Manipulable values; live numeric feedback; target-based check | HTML range inputs with live result |
| LO3 Apply to a new case | Scenario problem with constructed response and explanatory feedback | Scenario text; conditional feedback; justification box | Same page, no extra tool |
| Access for all | Multiple means of representation and action | Captions, transcript, keyboard operation, text scaling, reduced motion, no colour-only cues | Semantic HTML, ARIA, CSS media features |
Tool selection against five criteria
| Criterion | Recorded video | Authoring tool (e.g. H5P or Storyline) | Custom HTML/SVG page (chosen) |
|---|---|---|---|
| 1 Pedagogical fit (segmenting, signalling, generative tasks) | Low. Pauses and tasks need extra tooling. | Medium to high. Templates limit custom diagram behaviour. | High. Every interaction can be matched to a principle. |
| 2 Accessibility output | Medium. Captions possible, interaction not. | Varies by tool and by template. | High, if built carefully. Needs testing with real assistive technology. |
| 3 Learner access conditions | Low. Large files on metered data. | Medium. Runtime bundles add weight. | High. One small file, no media downloads. |
| 4 Feasibility (skills, time, cost) | High. | High with a licence. | Medium. Needs coding skill. |
| 5 Maintainability and reuse | Low. Re-record to change. | Medium. Tied to the vendor format. | Medium. Plain text, easy to version, but no authoring UI. |
Generative activities and social cues
Generative activities
- Prediction before instruction (Ana and Ben). Warrant: generative learning, activating prior knowledge (Fiorella & Mayer, 2016).
- Self-explanation after step 3, with model answer. Warrant: generative learning (Fiorella & Mayer, 2016).
- Manipulate and construct (Tasks A and B), a fading sequence from worked example to transfer. Warrant: worked-example fading (Renkl & Atkinson, 2003; Sweller et al., 2011).
- Teach-back to a classmate. Warrant: generative learning (explaining and teaching); andragogy's use of learner experience (Knowles et al., 2015).
Boundary condition: generative tasks add load. Expert learners can skip most of them, which follows the expertise-reversal effect (Kalyuga, 2007).
Social cues
- Conversational, first-person language and a polite register ("Let's…", "Take a guess"). Warrant: personalization principle (Mayer, 2021).
- One small, static guide icon, no animated talking head. Warrant: image principle. A visible agent rarely helps and can distract, so it is kept minimal (Mayer, 2021).
- Pointing cues through the glowing ring and moving dashes. Warrant: signalling (Mayer, 2021).
- A scripted classmate question, labelled as such, and a prompt to post in the forum. Warrant: social presence for distance learners; andragogy's problem-centred, collaborative stance.
- Local examples (Ana, Ben, Los Baños, Cebu, a touch of Filipino). Warrant: relevance and contextual validity.
Boundary condition: the narration is a synthetic device voice. The voice principle favours a human voice (Mayer, 2021), so a recorded narrator would be an improvement once recording is possible.
Decision log: decision → warrant → ADDIE phase
| Decision | Theoretical warrant | ADDIE phase | Where to see it |
|---|---|---|---|
| D1 Limit scope to the forget gate, in three steps | High element interactivity gives high intrinsic load, so reduce what is held at once (Sweller et al., 2011) | Analyse, Design | Guided path, steps 1 to 3 |
| D2 Learner-paced "Continue" instead of continuous playback | Segmenting principle (Mayer, 2021) | Design | Navigation buttons |
| D3 Equations drawn on the nodes they describe; no separate legend | Spatial contiguity; avoids split attention (Sweller et al., 2011) | Analyse (diagnosis), Design | Diagram, all steps |
| D4 Inactive gates at 30%; moving dashes and a ring on the active part | Coherence and signalling (Mayer, 2021) | Design, Develop | Diagram |
| D5 Narration carries the explanation; screen holds diagram and symbols only | Modality and redundancy principles (Mayer, 2021). Formulas stay visible because symbols are hard to hold in audio alone (Rummer et al., 2011). | Design | Narration and caption |
| D6 Captions and a transcript, off by default; captions switch on automatically when narration is off | UDL: alternatives for auditory information (CAST, 2018). Default off protects the redundancy principle for hearing learners. | Design (revised in iteration 2) | Settings |
| D7 Quick check, then Guided or Expert path | Expertise-reversal effect (Kalyuga, 2007); andragogy's self-direction (Knowles et al., 2015) | Design | Welcome screen, settings |
| D8 Prediction before the walkthrough | Generative learning; adult need-to-know (Fiorella & Mayer, 2016; Knowles et al., 2015) | Design | "Make a prediction" |
| D9 Self-explanation with model answer | Generative learning (Fiorella & Mayer, 2016) | Design | Step 3 panel |
| D10 Worked example → completion → transfer | Fading of worked examples (Renkl & Atkinson, 2003) | Design | "Your turn" |
| D11 Teach-back with self-check and forum prompt | Generative learning; learner experience (Knowles et al., 2015) | Design | "Teach it to a classmate" |
| D12 Minimal guide icon, conversational text, no talking head | Personalization, image and voice principles (Mayer, 2021) | Design | Guide bubbles |
| D13 Local names and places in the examples | Andragogy: relevance; cultural and contextual validity | Analyse, Design | Ana and Ben passage |
| D14 Colour is never the only cue (dash pattern, line weight, labels) | UDL: perceivable information (CAST, 2018) | Design (iteration 2) | Diagram lines and labels |
| D15 Keyboard operation, visible focus, resizable text, reduced-motion support | UDL: multiple means of action and engagement (CAST, 2018) | Develop | Whole page |
| D16 One light file, system fonts, no media downloads | Learners' access conditions; UDL (CAST, 2018) | Analyse, Develop | Whole page |
| D17 Label the result "retained memory", not "updated memory" | Content accuracy and coherence: the full new cell state also needs the input gate | Evaluate (iteration 2) | Diagram step 3 |
Iteration log
| Iteration | What was reviewed | What changed |
|---|---|---|
| v1 Storyboard | Assessment 1, Table 2 (three frames, 90 seconds) | Baseline. |
| v2 First build | Storyboard against the Part B brief and the principles it cites | The storyboard says "Step 1 of 2" but has three frames, so the build uses three steps. "Updated memory" became "retained memory" (D17). Green and yellow cues gained dash patterns and labels (D14). Captions switch on when narration is off, so no learner is left without a verbal channel (D6). Added outcomes, two or more generative tasks, social cues and an assessment sequence. |
| v3 Developer testing | Walk-through in a desktop browser and at phone width, keyboard-only pass, contrast calculation, reduced-motion check. | Sigmoid plot axis labels were clipped, so the plot margin was widened. The f-values box overflowed its frame and was widened. The cell-state result repeated the equation shown on the node, so it now reads "retained = …". Focus did not move to the new step heading, so it now does, which also announces the step to screen-reader users. Amber text on its tinted tag background measured 4.3:1, so the amber was darkened to reach at least 4.5:1. All other text and button pairs measured 4.5:1 or higher in light and dark themes. Narration-off forces captions on and reduced motion skips the travelling dot, both confirmed. |
What this build does not yet achieve
- No learners have used it yet, so every claim about load and learning is a design prediction, not a result.
- The narration is a device voice. Quality and accents vary by device, and some devices have no voice.
- Answers are not collected. Evidence for Part C would need a forum task, a short survey, or an LMS hook.
- The inactive gates are dimmed on purpose, so they do not meet normal text contrast. They are context only and are excluded from the text alternative.
- The Ana and Ben memory labels are idealised. In a trained LSTM, meanings are spread across many values, and the page says so after Task B.
- Accessibility was checked by calculation and keyboard testing, not by testing with screen-reader users.
References cited on this page
- CAST. (2018). Universal Design for Learning Guidelines version 2.2. http://udlguidelines.cast.org
- Fiorella, L., & Mayer, R. E. (2016). Eight ways to promote generative learning. Educational Psychology Review, 28(4), 717–741.
- Kalyuga, S. (2007). Expertise reversal effect and its implications for learner-tailored instruction. Educational Psychology Review, 19(4), 509–539.
- Knowles, M. S., Holton, E. F., & Swanson, R. A. (2015). The adult learner (8th ed.). Routledge.
- Mayer, R. E. (Ed.). (2021). The Cambridge handbook of multimedia learning (3rd ed.). Cambridge University Press.
- Renkl, A., & Atkinson, R. K. (2003). Structuring the transition from example study to problem solving in cognitive skill acquisition: A cognitive load perspective. Educational Psychologist, 38(1), 15–22.
- Rummer, R., Schweppe, J., Fürstenberg, A., Scheiter, K., & Zindler, A. (2011). The perceptual basis of the modality effect in multimedia learning. Journal of Experimental Psychology: Applied, 17(2), 159–173.
- Sweller, J., Ayres, P., & Kalyuga, S. (2011). Cognitive load theory. Springer.