Activation Steering: One Dial, Two Costs
Activation steering edits a model's internal activations to add or remove a concept at inference time. This explainer maps its one control knob, its two costs, and when it beats prompting.
Loading…
Topic
748 posts about LLMs. Every summary links to the original.
See the idea
Activation steering edits a model's internal activations to add or remove a concept at inference time. This explainer maps its one control knob, its two costs, and when it beats prompting.
Antibody discovery is a three-stage prediction pipeline, and AI models that excel on familiar targets degrade sharply on unfamiliar ones. This explainer maps where that gap appears and what it costs.
Agent memory is the knowledge that survives a run, not the working state inside one. This explainer separates the two, then maps the write path, the read path, and the database limits that cap recall.
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
Newest first
Shopify’s cross-store product clustering system groups listings of the same product across different merchants into a single global Universal Product Identifier. The approach avoids comparing every pair by generating candidate pairs using approximate nearest-neighbor search across billions of vector embeddings. Scoring uses three models of increasing cost: L1 is a fast GBDT classifier, L2 is a fine-tuned multilingual cross-encoder that reads both listings together, and L3 adds images. The UPI builder evaluates proposed merges using a trained model that weighs evidence, handling non-transitive pairwise judgments. The system caches scores and uses priority queues for expensive inference, enabling daily cluster updates while background GPU inference continues refining matches.
Long customer support conversations often exceed an LLM’s context window, causing the oldest turns—which contain the original problem description—to be dropped first. Four strategies exist to manage context: sliding window, rolling summaries, retrieval from memory, and structured state. Twilio recommends combining structured state for known fields, a sliding window for the live exchange, and retrieval for prior conversations. Twilio’s platform splits context management: live turn history stays in the agent’s code, while Conversation Memory stores compressed observations and summaries from past conversations. The Recall endpoint returns up to 100 observations and 100 summaries per call, each capped at 4,096 characters, using semantic and lexical search. On voice calls, developers choose how often Recall runs to balance context freshness against response latency.
TorchTitan TPU is a fork of Meta’s TorchTitan that enables PyTorch model training on Google Cloud TPUs using the TorchTPU native backend with minimal device initialization changes. SimpleFSDP replaces FSDP2 hooks with DTensor parametrization, making all-gathers and reduce-scatters ordinary nodes in the traced graph for compiler scheduling. The Graph Trainer captures the full forward, loss, and backward step as one XLA program via make_fx, achieving 51-52% MFU on Qwen3-8B with functional AdamW. On Llama 3 405B, TorchTitan TPU reaches about 57% MFU on up to 1,024 chips, and a weak-scaling test of Qwen3 235B MoE retained 92% of per-chip throughput from 64 to 8,192 chips. The repository includes an optimization playbook, a coding-agent model-onboarding skill, and supports over 500 Hugging Face models through a Transformers backend.
AnyLanguageModel 1.0, alongside swift-huggingface 1.0 and swift-xet 1.0, marks a year of development on a drop-in replacement for Apple’s Foundation Models framework that lets developers choose the model and provider. It provides a unified API for switching between local models (llama.cpp, MLX, Core ML) and hosted providers (OpenAI, Anthropic, Google Gemini, Ollama, Hugging Face). The update adds tool calling and guided generation support for all providers, image input using Foundation Models’ syntax on OS 27, and reasoning that appears in transcripts. API keys are supplied through closures instead of strings, enabling apps to fetch short-lived tokens from their own server. Local open-weight models such as Gemma 4 E2B and LFM2.5 2.6B fit on an iPhone, while Qwen3.8 27B runs on a Mac with 32 GB of memory, all loadable with a single line of code.
PyTorch 2.15 brings FP8 support to MPS, storing float8_e4m3fn values in half the space of BF16 and enabling scaled matrix multiplication directly on the GPU with tensorwise or rowwise scaling. Language-model decoding accelerates significantly: mixture-of-experts models decode 5–6.5× faster thanks to a native grouped matmul with a dedicated decoding path—on an M3 Ultra with torch.compile, Qwen3.6-35B-A3B reaches 61.3 tokens/s, up from 9.4. Dense models benefit from specialized matrix-vector kernels for single-row linear layers, and softmax over the vocabulary is about 8× faster. Video generation memory usage drops dramatically: Wan2.2’s VAE decode now peaks at 8 GiB instead of 270 GiB. The Hugging Face team runs real models to find and fix MPS shortcomings. The release also adds complex LU and triangular solves, faster small-matrix inverses and QR decomposition, public MPS streams, and requires macOS 15 or later, with many operations moved from MPSGraph to dedicated Metal kernels.
Anthropic developed a testing process combining Policy Vulnerability Testing (PVT) and automated evaluations to identify and mitigate elections-related risks in AI models. PVT partners with external experts through planning, testing, and reviewing stages, revealing that earlier models often provided incorrect or outdated information on topics like voter registration because they lack internet access. Automated evaluations scale coverage by using few-shot prompting of PVT questions to generate hundreds of test questions covering accuracy, political parity, and refusal rates for harmful queries. Mitigations include system prompt updates to reference the August 2023 knowledge cutoff, fine-tuning to redirect users to authoritative sources, and UI pop-ups linking US users to TurboVote. Retesting measured a 47.2% improvement in cutoff date referencing and a 10.4% improvement in authoritative source redirection, using a Swiss cheese model of layered interventions.
GenRecs Tokenization replaces per-item IDs with a stable semantic vocabulary of tokens that describe what an item is, enabling generative recommender models to reason about ad content and user preferences together. The tokenization pipeline encodes each item into a semantic embedding, decomposes it into independent subspaces, and quantizes each subspace to a codebook entry, producing discrete tokens that similar items share. This approach accelerates learning for new entities with no engagement history, enables cross-campaign transfer, and allows the system to benefit from LLM scaling and world knowledge. In production, paired with Meta’s Generative Ads Model and Adaptive Ranking Model, GenRecs Tokenization delivered a +0.35% lift in conversions across surfaces. The tokenization flywheel improves tail ad predictions, which enriches training data and further improves predictions for all ads, creating a self-reinforcing feedback loop.
Meta’s thin orchestrator is a 1,300-line deterministic router that handles 20+ workflows across a data column onboarding pipeline spanning three code repositories, three programming languages, and up to six synchronized stages. It delegates all domain reasoning to 14 specialized subagents — each with isolated context loaded from 25+ knowledge files — and follows a fixed 7-step protocol that includes reliability gate checks before any LLM invocation. This architectural separation replaced an earlier monolithic agent that suffered from context interference, achieving only 10-20% success without per-task prompt engineering. The thin orchestrator pattern uses reusable workflow templates so that new use cases, such as pipeline migration, require no new agent code — only a different sequence of existing agents. Configuration preparation dropped from three to four days to under an hour, with roughly two-thirds of changes landing without significant human edits.
Together Post-Training is a new service for building custom AI models using reinforcement learning or supervised fine-tuning. It provides common abstractions for defining the training loop while Together AI handles the underlying infrastructure, optimizations, and numerical correctness. The service uses dedicated GPU allocations called Model Resources that can hold multiple training sessions without competing for priority, supporting both LoRA with adapter sharing and full-weight finetuning. It eliminates policy drift between training and inference engines using techniques like Rollout Routing Replay and advanced optimizations from their research. The goal is to allow any organization to create task-specific specialist agents matching frontier model quality at lower cost and runtime.
Distillation attacks are covert campaigns to extract capabilities from frontier models like Claude and replicate them in unauthorized models, often using fraudulent account networks that control hundreds of thousands of accounts. These attacks enable companies to mimic frontier capabilities at reduced cost, raising concerns about inadequate safeguards and national security risks when capabilities are integrated into foreign military and surveillance systems, as seen with GLM-5.3. Anthropic developed three defenses: preserved thinking restricting access to reasoning, a two-stage classifier blocking extraction attempts, and stricter enforcement banning accounts often within two hours. After implementation, the reasoning tokens distillers could extract fell by 10 to 100 times, and tens of thousands of accounts were banned. Anthropic acknowledges trade-offs including required integration updates and a less than 0.1% false positive rate for benign requests but considers the costs worth bearing for national security.
Supply chain attacks on the npm registry are growing, and packages that bundle a binary payload are rare but disproportionately hard for LLMs to triage. The authors built a scanner that combines static analysis with LLM reasoning and introduced capability profiles, which encode malicious techniques as weighted conditions injected into the prompt before the model decides. They tested nine models across seven providers on five adversarial payload types, including credential stealers and reverse shells, at varying obfuscation levels. Without profiles, the budget-tier models failed to reach a malicious verdict on 50 percent of tests, with failures following distinct model-specific patterns rather than random error. With profiles enabled, the failure rate dropped to 4 percent, and 91 percent of prior failures recovered to a detection.
Spotify has been applying generative AI to personalize recommendations across surfaces, using LLMs for podcast discovery with beam search and candidate scoring. Their initial inference stack relied on vLLM for beam search, which suffered from CPU-side bottlenecks and KV block recomputation, and SGLang for efficient multi-item scoring, but no single engine supported all required features. To unify these capabilities, Spotify collaborated with NVIDIA to extend TensorRT LLM with efficient beam search implemented in the sampler, multi-item scoring via the Python API, and soft token personalization using out-of-tree model plugins. On a 1.7B Qwen3 model, the resulting implementation delivered up to 54% cost reduction for beam search workloads and 7% for scoring workloads compared to previous setups. Spotify plans to continue optimizing inference with quantization and NVIDIA Blackwell-specific techniques to support increasingly sophisticated personalization at scale.
Reflection released Beam, a 501B-parameter mixture-of-experts model with 23B active parameters per token, under the Apache 2.0 license, targeting coding and agentic use cases. The model supports a 1M-token context window using hybrid attention with 43 sliding-window and 9 global layers, and a residual stream that scales sublayer outputs by 1/sqrt(k) to maintain constant magnitude. Its MoE router uses a group-limited scheme with 256 experts, 8 routed per token, and the BF16 checkpoint occupies about 1 TB. Benchmarks show strong performance: 81.6% on SWE-bench Verified, 97.7% on AIME 2026, and 90.6% on GPQA Diamond, with minimal degradation in FP8 and NVFP4 quantizations. The model ships with a Rust-based harness, day-0 support in transformers, vLLM, and SGLang, and includes SFT and RL recipes, with a $10,000 Hub credits competition for community projects.
MCP standardized how AI models connect to tools, with clients like Claude Code and Cursor adopting it and SDK downloads approaching half a billion monthly. However, production use reveals that the protocol solves only the interface problem, not the operational concerns around authentication, rate limiting, idempotency, and observability. Teams repeatedly build duplicate infrastructure for deployment, secret handling, health checks, and access control because the protocol does not address these. Context efficiency also remains a challenge: a benchmark showed reducing context from 220,393 to 27,352 tokens (87.6%) while maintaining test pass rates, highlighting the need for deliberate context selection. The author argues that MCP’s success forces the question of building a production-grade infrastructure layer, similar to how HTTP led to CDNs and API gateways.
Granite Switch 4.1 models combine chat, general and specialized decisions, and speech-to-text from a single hosted endpoint. The 8B and 30B models include a new Decision aLoRA for general-purpose decision-making and a Guardian aLoRA that outperforms Jev 1.13 and other closed models on safety tasks. They also embed Granite-Speech-5.0-Turbo-CTC, the fastest ASR model on the OpenASR Leaderboard, enabling efficient transcription. All components are composed into one model using cache-efficient Activated LoRAs, taking up about the same GPU VRAM as the base model alone, and the KV cache from base generation can be reused for any subsequent adapter decisions. Granite Switch 4.1 can switch between chat, decision, and spoken requests quickly, and a 3B variant achieved 60-100 decisions per second playing Doom, compared to Jev’s 10, while also narrating and answering questions.
FactSet’s Text-to-Formula (TTF) system converts natural-language investment queries from professionals into correct FactSet Query Language (FQL) formulas. Initially built on retrieval-augmented generation (RAG), the approach hit a quality ceiling as queries became more specialized and formulas more complex. FactSet adopted fine-tuned open models within a Compound AI architecture, reducing end-to-end latency by about 60 percent and improving quality for complex formulas. Fine-tuning runs on Databricks AI Runtime with serverless GPU infrastructure, where engineers choose compute based on prompt length and output needs, and the pipeline integrates with MLflow, the Lakehouse, and Lakeflow Jobs for a unified workflow. This setup cut model setup, training, and deployment from days to hours, enabling the team to retrain every two to three weeks as new data and models become available.
Meta launches Muse Spark Open, an 816B-parameter mixture-of-experts model with 42B active parameters and a 1M token context window, trained on NVIDIA GB300 NVL72 for agentic coding workflows. It plans, acts, observes, and self-corrects across multistep tasks like multifile refactoring, using tool calls and subagent coordination while holding an entire project in context without breaking it into pieces. Its 1.8B perception encoder natively processes interleaved text, images, video frames, and audio in a single pass. On GB300 NVL72 with speculative decoding, it achieves over 50K tokens per second per GPU and over 600 tokens per second per user. Sparse MoE routing activates only 42B parameters per token, and NVFP4 quantization reduces memory footprint for larger KV cache. The model is available via Hugging Face and NVIDIA NIM, with support from SGLang, vLLM, and TensorRT LLM for serving, and fine-tuning through NeMo AutoModel and Megatron Bridge.
Apertus 1.5 extends the 8B and 70B open-weight models with image and audio understanding, a thinking mode, and a 262,144-token context window, released under Apache 2.0. The models are a continued pretraining of Apertus 1.0, adding 4 trillion tokens to the 8B model and 2 trillion to the 70B model, for totals of 19T and 17T respectively. Multimodality uses an early-fusion tokenizer with Emu3.5 for images and WavTokenizer for audio, keeping the architecture unchanged and training at text-only speed. Post-training includes SFT, long-context SFT, reinforcement learning with verifiable rewards, DPO, and charter alignment via SDPO, with all data and recipes publicly documented. Evaluation results show competitive performance on reasoning, coding, and multilingual tasks, with the 8B model matching GPT-OSS-20B on translation and outperforming Claude Haiku 4.5, reported transparently via the EvalEval Coalition’s EEE schema.
Anthropic announced Claude 3 Haiku, the fastest and most affordable model in its intelligence class alongside Sonnet and Opus, featuring state-of-the-art vision and strong benchmark performance for enterprise applications. It processes 21,000 tokens (about 30 pages) per second for prompts under 32,000 tokens, three times faster than peer models, enabling rapid analysis of large documents like quarterly filings or contracts. The pricing model uses a 1:5 input-to-output token ratio, designed for long prompts, making it cost-effective—for example, analyzing 400 Supreme Court cases or 2,500 images costs one US dollar. Enterprise-grade security includes rigorous testing to reduce harmful outputs, continuous systems monitoring, endpoint hardening, strong data encryption, stringent access controls, and regular audits with penetration testers. Haiku is available through the Claude API and claude.ai for Pro subscribers, on Amazon Bedrock, and soon on Google Cloud Vertex AI.
Anthropic released the Claude 3 model family (Haiku, Sonnet, Opus), setting new standards on MMLU, GPQA, and GSM8K, with Opus exhibiting near-human reasoning. Sonnet is 2x faster than Claude 2 and more intelligent, while Haiku can read a research paper with charts in under three seconds at the lowest cost. All models support visual inputs and a 200K token context window, with Opus exceeding 99% recall on long-context tests. The models refuse less and produce twice as many correct answers for Opus, backed by Constitutional AI, maintaining ASL-2. Opus and Sonnet are now available via API and claude.ai in 159 countries, with Haiku coming soon, and future updates will include tool use and agentic capabilities.
The best engineering reads, once a week.