AIML-500 · Artifact 02 · Research guide
Choosing Between Traditional Machine Learning and Deep Learning
Two text problems. Different model requirements.
Choose the complexity that the task can justify.
Download the original paper Word document ↓Introduction Link to heading
Machine learning (ML) lets computers learn patterns from data to make predictions. Deep learning (DL) is part of ML: it uses multiple neural network layers to learn increasingly complex representations (LeCun et al., 2015). Choosing an approach means matching what a problem requires with the complexity and resources a model needs.
This research examines two technology applications: email spam detection and Google’s 2016 neural machine translation system. The key question is what information must the model preserve, and what must it produce?
Description Link to heading
This visual edition adapts my AIML-500 research paper for readers evaluating technical approaches. Read the research below, explore the explanatory diagrams, or download the original paper (Word). The diagrams and interactive graph are additions for the portfolio; they are explanations, not experiments or model benchmarks.
Research Link to heading
Email spam detection Link to heading
Email spam detection assigns a message to one of two categories: spam or legitimate mail. Goodman and Yih (2006) studied a logistic-regression filter on email collections. It represented words in message bodies and headers as features, learned weights, and combined those weights to estimate the probability of spam.
The researchers defined the feature representation; the model learned the weights. Their online training method could update those weights as labeled messages arrived. This makes the case useful for understanding a practical classifier whose inputs are explicit word features.
01 / Classification
From words to a category
- InputEmailBody and headers
- RepresentationWord featuresPresent = 1; absent = 0
- ModelWeighted sumLearned word weights
- OutputSpam or legitimateProbability + cutoff
From a weighted score to a probability Link to heading
Logistic regression maps a score to a number between 0 and 1. The graph below shows that mathematical relationship. A cutoff then turns the probability into a category; changing the cutoff changes which messages are flagged.
02 / Explore the mathematics
A score becomes a probability
p = 1 / (1 + e−z)
Move right to increase the score; move left to decrease it.
50.0% probability · Legitimate
Why this approach fits Link to heading
Word-presence features can support a useful binary decision with a relatively simple model. When that filter already meets the application’s needs and computing or maintenance capacity is limited, a deep network needs a demonstrated improvement to justify its additional complexity.
That last point is a practical judgment from the paper, not a finding that Goodman and Yih compared logistic regression with modern deep networks. Deep learning can also be used for spam detection, particularly when richer language understanding improves the result.
Natural language processing in Google Translate Link to heading
Translation produces a sequence of words in another language. Google launched its neural machine translation system for Chinese-to-English translation in 2016. The system used recurrent neural networks and attention to encode the input and generate the output sequence (Le & Schuster, 2016).
03 / Sequence generation
From an input sentence to an output sentence
- InputSentenceRead in sequence
- EncoderRecurrent layersBuild contextual representations
- AttentionRelevant inputWeight encoded information at each step
- DecoderTranslated sequenceGenerate output step by step
The diagram describes the historical system discussed in the paper. It does not describe the architecture of today’s Google Translate. Attention helped the decoder use relevant encoded input while generating each output word. Google reported better translation quality than its previous phrase-based system.
Why this approach fits Link to heading
Translation depends on relationships across a sentence. Word presence alone loses order, and a binary classifier does not directly generate a translated sentence. The example below shows why preserving the same vocabulary is not enough.
04 / Why order matters
Same vocabulary, different events
The server contacted the client.
The client contacted the server.
A simple logistic-regression classifier is therefore unsuitable as a complete translation system. Traditional statistical translation systems can work, but they require more extensive components than the lesson’s simple classifiers. For Google’s application, learning relationships across sequences justified the neural system’s complexity.
Compare the requirements Link to heading
| Question | Spam filter in the paper | Translation system in the paper |
|---|---|---|
| What goes in? | Word-presence features from an email | A sequence representing an input sentence |
| What comes out? | A spam probability, then a category | A translated sequence |
| What must be captured? | Word evidence useful for classification | Order and context across the sentence |
| What approach is examined? | Logistic regression | Recurrent neural networks with attention |
| Why use that complexity? | Explicit features support the decision | Learned sequence representations support generation |
Conclusion Link to heading
Model complexity should serve the problem. Logistic regression is a practical option when explicit features support effective classification. Deep learning fits the translation example because the task needs relationships within sequences and must generate new text. Neither case establishes a universal winner: the choice depends on the required output, useful information, and whether the benefit justifies the resources.
When approaching a similar task, define the output first, identify the information it depends on, and evaluate a suitable baseline before committing to greater complexity. These two case studies motivate that reasoning; they do not provide a universal accuracy or computing-cost comparison.
Objective Link to heading
To compare one traditional ML example and one DL example from the course lesson, identify real-world applications, and explain why each approach suits its problem and why the alternative is less suitable in that setting.
Process Link to heading
The paper examines Goodman and Yih’s spam filter and Google’s neural translation deployment, then connects their model choices to each task’s inputs and outputs. During drafting, I replaced a medical image-classification example with Google Translate to focus on technology, the field I am more familiar with. For this portfolio edition, the research was adapted into a web guide with diagrams and a mathematical demonstration, while retaining the original paper as evidence.
Tools and Technologies Used Link to heading
The original paper discloses GPT-6.1 Sol for initial research and proofreading. This web edition uses Hugo, HTML, CSS, SVG diagrams, and JavaScript for the interactive probability graph. No spam classifier or translation model was trained for this artifact.
Value Proposition Link to heading
This guide helps software practitioners and collaborators reason about model selection through familiar technology problems. It connects model capabilities to practical requirements and makes the paper’s reasoning easier to inspect visually.
Unique Value Link to heading
The paired examples show how two text-based tasks can need different representations and outputs. The artifact demonstrates developing AI/ML knowledge, comparison of research applications, and technical communication through a paper and an accessible visual explanation.
Relevance Link to heading
For readers considering how to approach an AI feature, the guide offers concrete questions about features, context, and output structure. It supports a more informed starting point for evaluation without implying that a larger model is always better.
References Link to heading
Goodman, J., & Yih, W.-T. (2006). Online discriminative spam filter training. In Proceedings of the Third Conference on Email and Anti-Spam. Read the research paper.
Le, Q. V., & Schuster, M. (2016, September 27). A neural network for machine translation, at production scale. Google Research. Read Google’s announcement.
LeCun, Y., Bengio, Y., & Hinton, G. (2015). Deep learning. Nature, 521, 436–444. https://doi.org/10.1038/nature14539.