✗Finite attention: recall sags in the middle of long contexts — an agent “reading” your repository is sampling it.
Liu, N. F., Lin, K., Hewitt, J., et al. (2024). Lost in the middle: How language models use long contexts. Transactions of the Association for Computational Linguistics, 12, 157–173.
✗Trained to please: preference-tuned assistants agree with your framing — including when your framing is wrong.
Sharma, M., Tong, M., Korbak, T., et al. (2023). Towards understanding sycophancy in language models. arXiv:2310.13548 (also published at ICLR 2024).
✗AI grading AI tracks human raters — but carries position and verbosity biases you must measure first.
Zheng, L., Chiang, W.-L., Sheng, Y., et al. (2023). Judging LLM-as-a-judge with MT-Bench and Chatbot Arena. Advances in Neural Information Processing Systems 36, Datasets and Benchmarks Track.
Three measured failure modes — attention, agreement, judging. Not anecdotes: experiments you can rerun.
What an agent is
an LLM + a set of tools + a loop over observations
The model proposes an action; the harness runs it; the result returns as context
Reading files, running Python, querying an earthquake catalog — all just tools
“Did seismicity rate change after the M6.4?” → query, write the test, run, look, revise
The arithmetic moved to numpy, which is reliable. What to query, which test, what the result means — still the model’s judgment.
Why the model cannot do the math itself
0 numeric types inside a language model — digits are vocabulary
3,650 daily GNSS values pasted into a prompt: a regression handed to a text engine
13.847 may tokenize as 13 · . · 847. Arithmetic becomes pattern completion over digit strings — fluent, roughly plausible, silently wrong.
A well-built agent writes and runs the numpy code. It does not “read” your numbers.
Where errors enter the loop
Attention: long contexts sag in the middle — an agent “reading” 40 files is sampling them
Agreement: tuned on human approval, it tends to ratify your framing, wrong framings included
Judgment: does an empty catalog result mean “no earthquakes” — or “wrong request”?
Long visible reasoning makes errors more persuasive, not less common.
Hallucination is not ordinary error
An ordinary error comes from a traceable process — it usually looks wrong somehow
Hallucination is fluent fabrication, optimized to look right
Canonical case: the fabricated citation — real journal, well-formed DOI, no paper
Subtler: an extraction table where a few values appear nowhere in the source
Plausibility is the one test hallucination is guaranteed to pass. Verify against the data, never against plausibility.
Every exercise declares its AI mode
🔒 By hand — assistant closed; the drill builds a reflex you must own
🤝 Assistant allowed — use it; verify every line; disclose the use
No badge means assistant allowed. The “by hand” syntax — indexing, slicing, core numpy and pandas — is the same syntax you later use to check the machine.
Delegate the drills and the skill never forms — and then you cannot check the assistant.
Course law: disclose, defend, verify
Disclose — every submission names the tools and what they did; substantial AI commits say so in the message
Defend — any line, unaided, on request; “the AI wrote it” is not an explanation
Verify — numbers recomputed a second way, citations resolved, interfaces checked against the docs
Undisclosed AI help is an integrity issue exactly as undisclosed human help is.
Today, in one table
Failure mode
Mechanism
Your counter
bad arithmetic
digits are vocabulary, not numbers
make it write and run the numpy
missed context
attention sags mid-context
name the files; spot-check what it “read”
sycophancy
tuned on human approval
ask for the case against your framing
hallucination
fabrication optimized to look right
resolve every citation; verify against data
Verification is not distrust of the tool. It is how the tool becomes usable for science.
Ask it for the mean east velocity of station P395 from 1.7’s saved CSV — did it write code, or “read” the numbers? Verify the value yourself
Ask it for three papers on ML in your subfield — resolve every citation; count the fabrications
Sign up for your pulse talk (Canvas, opens today) · Reading arc stage 1 assigned — AI-assisted literature review, every citation verified, due Wed Oct 21
Ch 1 quiz: opens Tue Oct 6, closes Thu Oct 8 · Wednesday: meet the data (2.1–2.2, 1.6–1.7)