CodeDynasty Explore Projects
CodeDynasty

© 2025 CodeDynasty. All rights reserved.

Machine Learning

Reading AI Papers: the guide you need

Friday Candour
Friday Candour Software Developer
8 min read
Reading AI Papers: the guide you need

There's a persistent gap between how beginners learn AI and how researchers do. Tutorials optimize for immediate gratification. Papers optimize for precision. The difference matters when you're trying to understand why something works, not just how to call an API.

The Reading Problem

Most developers approach papers like documentation start at the top, read every word, hope it clicks. This fails spectacularly. Research papers aren't written for sequential consumption. They're structured for peer review, which means dense methodology sections, extensive related work citations, and conclusions that assume you've internalized the preceding thirty pages.

The fix is simple: treat reading as triage, not study.

A Practical Reading Method

Spend roughly 10% of your time on initial assessment. Skim titles, abstracts, figures. Figures are underrated a good architecture diagram tells you more about a paper's contribution than three pages of prose.

For papers that pass this filter:

  1. Read introduction and conclusion first
  2. Scan related work to understand positioning
  3. Dive into methodology only if the framing holds up
  4. Skip freely even experts do this

The goal isn't comprehension of every equation. It's building a mental model of what the paper contributes and where it fits.

Andrew Ng suggests 15-20 papers for basic understanding of a topic, 50-100 for expertise. That's reasonable for research roles. For beginners, I'd argue five papers read well beats twenty papers skimmed poorly.

Five Papers That Matter

These aren't the only important papers. They're a coherent sequence that explains how we got from recurrent networks to agentic systems.

Attention Is All You Need (2017)

The transformer paper. Before this, sequence models processed text token-by-token using recurrent architectures. The computational graph looked roughly like:

h_t = f(h_{t-1}, x_t)

Each hidden state depended on the previous one. Sequential dependency meant sequential computation. Training was slow; long-range dependencies were hard to capture.

Transformers replaced this with self-attention:

$\text{Attention}(Q, K, V) = \text{softmax}\left(\frac{QK^T}{\sqrt{d_k}}\right)V$

Every position attends to every other position simultaneously. The computational cost is quadratic in sequence length, but the parallelism makes it faster in practice for the sequence lengths that matter.

This architectural shift made large language models feasible. Everything that followed—GPT, BERT, the current generation of models builds on this foundation.

GPT-3: Language Models are Few-Shot Learners (2020)

The scaling paper. GPT-3 demonstrated that model capability isn't just about architecture it's about scale. At 175 billion parameters, the model exhibited emergent behaviors: abilities that appeared without explicit training.

The key insight was in-context learning. Instead of fine-tuning for each task:

# Traditional approach
model = load_pretrained()
model.fine_tune(task_specific_data)
output = model.predict(input)

# In-context learning
prompt = """
Translate English to French:
sea otter => loutre de mer
cheese => fromage
hello => """
output = model.complete(prompt)  # "bonjour"

The model learns the task from examples in the prompt itself. No gradient updates. No task-specific training data. Just pattern matching at scale.

This shifted the optimization target from model weights to prompt construction. Prompt engineering emerged not as a gimmick but as a genuine skill the quality of instructions directly controls output quality.

Synthetic Data for LLM Training (2024)

Real-world training data has limits. There's only so much high-quality text on the internet, and models are approaching that ceiling. Synthetic data training examples generated by other models offers a path forward.

The research suggests three constraints:

  1. Synthetic data works best when combined with real data
  2. Training exclusively on synthetic data causes quality degradation over time
  3. Verification mechanisms are essential

The degradation problem is particularly interesting. Models trained on their own outputs tend toward mode collapse—they lose diversity and start producing increasingly generic responses. The solution isn't avoiding synthetic data; it's treating it as augmentation rather than replacement.

Retrieval-Augmented Generation (2020)

Large language models have a fundamental limitation: their knowledge is frozen at training time. RAG addresses this by retrieving relevant documents before generation.

The architecture has evolved through three phases:

Naive RAG: Retrieve documents, concatenate with query, generate response.

def naive_rag(query, retriever, generator):
    docs = retriever.search(query, k=5)
    context = "\n".join(docs)
    return generator.complete(f"{context}\n\nQuestion: {query}")

Advanced RAG: Adds pre-retrieval query expansion and post-retrieval reranking.

Modular RAG: Treats each component as swappable. Different retrievers for different domains. Custom rerankers. Iterative retrieval for complex queries.

RAG doesn't solve hallucination—models can still generate plausible-sounding nonsense. But it makes answers verifiable. You can trace claims back to source documents. That's a meaningful improvement in reliability.

Model Context Protocol (2025)

MCP addresses a different problem: action, not knowledge. RAG gives models access to information. MCP gives them the ability to do things.

Before MCP, connecting a model to external tools meant custom integrations for every combination of model and service. MCP standardizes this interface:

{
  "tool": "database_query",
  "parameters": {
    "query": "SELECT * FROM users WHERE active = true",
    "database": "production"
  }
}

The model describes what it wants to do. The MCP layer handles execution. This enables multi-step workflows: fetch data from one system, process it, send results to another.

RAG + MCP together represent the current direction of AI systems. Models that can both know things (via retrieval) and do things (via tool use). The gap between chatbot and agent narrows considerably.

Where to Find More

Four sources worth knowing:

  • Hugging Face Papers: Organized by model and dataset, easy to browse trending work
  • This AI: Historical organization by topic and era, useful for tracing evolution
  • Deep Learning Monitor: Fresh papers with topic filtering, good for staying current
  • arXiv: The canonical source, though navigation requires knowing what you're looking for

The Trade-off Space

Reading papers is slow. The payoff isn't immediate. You won't ship features faster next week because you understood the attention mechanism this week.

But there's a compounding effect. Each paper builds context for the next. Architectural intuitions transfer across domains. When the next paradigm shift happens and it will you'll recognize it faster if you understood the previous ones.

Following this flow helps you play the longer game.