← All tags

#nlp

The UN Panel Is Right: AI Safety Degrades in Non-English Languages, and It Is Measurable

A new brief from the UN-backed Independent International Scientific Panel on AI warned that LLM safety and accuracy degrade across non-English languages, and called for localized red-teaming. The evaluation methodology: language-stratified sampling, confidence intervals and calibration per language.

ctx-compact: What I Learned Trying to Fit Long Conversations into a Token Budget as a ml researcher

My open-source experiment on compacting long chats: a dependency graph that worked on synthetic data, neighbour smoothing that worked on LoCoMo, and an honest negative result.

The Dark Art of Context Truncation & Dynamic Prompt Compaction in Production RAG

Truncation, packing, and query-conditioned compaction when production RAG outgrows the context window.

Transformer Architecture: A Deep Dive into Attention Mechanisms

Understanding the revolutionary architecture behind GPT, BERT, and modern LLMs. How self-attention changed NLP forever.

What I Learned Building Voice AI at Amazon Alexa

Reflections on my time working on Alexa's NLU pipeline: real-time inference, handling ambiguity, and building for millions of users.

Keep the BERT Classifier and Route the Rest

Fine-tuned BERT stays for known intents. A threshold sends the long tail to a prompted model.

Indexing Dense Embeddings Without Fooling Yourself

TF-IDF still wins on exact tokens. Skip-gram and BERT vectors need a normalized index, an over-fetch, and a filter that the index itself does not apply.

GPT-3 in Production: Latency, Prompts, and a Score You Can Trust

What broke when the GPT-3 API sat behind a real request: a prompt nobody versioned, multi-second latency, and no score better than a spreadsheet.