Skip to content
Blogs
Apple logo

Apple

Engineering blog · machinelearning.apple.com/research

27posts0this week0watchers

Feature trails

20
Feature trailActive

Weighted State Souping for Long-Context Retrieval

This post introduces Weighted State Souping, a novel method for improving State Space Models (SSMs) in handling long and crowded contexts. By learning query-dependent weights for composing cached states, it significantly enhances performance in tasks like document QA, retrieval, variable tracking, and tool use. An efficient sparse variant offers near-constant encoding cost with respect to context length while maintaining or improving performance. The work also provides theoretical insights into the effectiveness and limitations of state souping.

1 post · 2026

Timeline

Feature trailActive

Tool Discovery Architectures for LLM Agents

This post introduces a novel approach to Maximum Inner Product Search (MIPS) for retrieval-augmented generation (RAG) and other applications. It proposes training small neural networks (SupportNets and KeyNets) offline to learn query-to-key mappings, significantly accelerating retrieval at inference time. SupportNets learn to approximate the support function of clusters of keys, enabling more accurate routing than traditional centroid-based methods. KeyNets act as query rewriters, predicting the best-matching key directly. This learned approach leverages the query distribution to optimize performance, offering substantial speedups and improved recall compared to existing methods, especially when query and key distributions differ significantly.

2 posts · 2026

Timeline

Feature trailActive

Distributed LLM Inference on Apple Silicon

This post details the implementation of distributed large language model (LLM) inference across multiple Mac Studio machines using MLX and RDMA over Thunderbolt. It covers single-machine performance optimizations leveraging Apple silicon's unified memory and Neural Accelerators, and introduces pipeline and tensor parallelization strategies for running models that exceed single-machine memory capacity. The work highlights performance metrics like Time to First Token (TTFT) and generation throughput, and discusses power efficiency.

1 post · 2026

Timeline

Feature trailActive

Agentic Data Cataloging

This post introduces SELFCOMPACT, a scaffold that allows the model itself to decide when and how to compact its context. It pairs a compaction tool with a lightweight rubric to enable adaptive compaction without fine-tuning or external supervision. This approach improves performance and reduces token cost on math and agentic search benchmarks.

5 posts · 2025–2026

Timeline

20252026
Feature trailActive

Semi-Supervised Federated ASR Training

This post details advancements in Semi-Supervised Federated Learning (SSFL) for Automatic Speech Recognition (ASR). It introduces a practical recipe involving online pseudo-labeling per client and server-side update stabilization. Key findings include the effectiveness of per-client online teachers over broadcast global teachers, the critical role of server-side training on labeled data for convergence, and the sensitivity of stabilization to data augmentation and batch size. The work provides guidelines for improving SSFL in ASR, significantly narrowing the gap to fully-supervised FL.

1 post · 2026

Timeline

Feature trailActive

Streaming Neural Audio Encoder Compression

This post introduces a method for compressing streaming neural audio encoders by distilling their latent-space representations. This technique aims to reduce the memory footprint and latency of these encoders, which are crucial for on-device speech transcription systems. The distilled encoders maintain performance close to their teachers while achieving significant compression ratios.

1 post · 2026

Timeline

Feature trailActive

Dynamically Scaled Activation Steering

This post investigates the effectiveness-fluency trade-off in LLM conditioning methods. It finds that efficient steering methods often degrade fluency, and that activation steering is less effective on instruction-tuned models compared to base models. Prompting and fine-tuning are better for concept injection but not removal. Textual metrics correlate well with LLM-as-judge scores and provide insights into conditioning behavior.

1 post · 2026

Timeline

Feature trailActive

AI Agent Scenario Synthesis

Agentic LLM systems require effective memory management to retain productive context across sessions. This post introduces shared selective persistent memory, which identifies and retains reusable context categories (task specifications, data schemas, tool configurations, output constraints) while discarding session-specific reasoning traces. This memory is shared across users with role-based access control for collaborative reuse. The system is implemented in a collaborative workspace platform for producing git-versioned artifacts. A zero-token data refresh mechanism decouples generated programs from runtime data, enabling artifact reuse without re-invocation. This approach significantly improves task completion rates, reduces token costs, and outperforms naive full-history persistence.

2 posts · 2026

Timeline

Feature trailActive

Diffusion vs. Autoregressive Language Model Performance

This post introduces probe guidance, a method to guide flow matching models using frozen internal states of an existing diffusion model. This eliminates the need for an additional forward pass at inference time and ensures that weak and strong models share similar dynamics. Applied to continuous diffusion language models, probe guidance sets a new state-of-the-art performance on unconditional generation. When applied to a 1.7B diffusion language model, probe guidance consistently improves on multiple choice question answering benchmarks. The post also studies the autoguidance setting, finding that the weak model must come from a low-entropy region of training. This provides a practical way to improve diffusion language models and sheds light on the mechanism behind autoguidance.

2 posts · 2026

Timeline

Feature trailActive

Distillation of Tool-Calling Capabilities

This post introduces Trajectory-Shaped Discrete Flow Matching (TS-DFM), a method to improve the efficiency and performance of discrete flow matching for text generation. TS-DFM uses a lightweight energy compass to guide the generation process at each step, selecting the most coherent continuations. This training-only shaping significantly reduces the number of forward passes required, leading to substantial speedups and lower perplexity compared to standard discrete diffusion models. The method achieves state-of-the-art performance among discrete generation baselines.

1 post · 2026

Timeline

Feature trailActive

Generative Language Model Pruning

IDEA Prune introduces an integrated enlarge-and-prune pipeline for generative language model pretraining. It combines enlarged model pretraining, pruning, and recovery under a single cosine annealing learning rate schedule, complemented by an iterative structured pruning method for gradual parameter removal. This approach mitigates knowledge loss and facilitates smooth compression and enhanced performance, achieving superior performance of pruned models.

1 post · 2026

Timeline

Feature trailActive

Unified Multimodal Generation with Autoregressive Flows

STARFlow2 builds upon the Pretzel architecture, vertically interleaving a frozen pretrained VLM stream with a TARFlow stream via residual skip connections. This design preserves pretrained multimodal understanding, enables high-fidelity continuous image generation, and achieves structural unification under a single causal mechanism. Combined with a deep-shallow flow design and a unified FAE latent space, STARFlow2 supports cache-friendly interleaved generation where both text and visual outputs directly enter the KV-cache without re-encoding.

1 post · 2026

Timeline

Feature trailActive

Mixture Pretraining Scaling Laws

This post introduces a repetition-aware mixture scaling law for language model pretraining under data constraints. It accounts for the decreasing value of repeated target tokens and the regularizing role of generic data, providing principled recommendations for effective mixture configurations. The work studies the trade-off between target data repetition and generic data regularization across various model and dataset sizes, finding that repetition is a central driver of target-domain performance and that mixture training tolerates higher repetition than single-source training.

1 post · 2026

Timeline

Feature trailActive

Multilingual Knowledge Transfer via Lexical Intervention

This post introduces a data-level intervention method (LINK) to improve cross-lingual knowledge transfer during model pretraining. By performing lexical substitutions in the high-resource (English) training corpus using bilingual vocabularies, LINK enhances knowledge acquisition for downstream tasks in low-resource languages without requiring additional model training or complex translation systems. This method has shown significant improvements on downstream tasks across eight languages and five

1 post · 2026

Timeline

Feature trailActive

Speculative Decoding for LLM Inference

ARBITRAGE is a novel step-level speculative generation framework for Large Language Models (LLMs) that dynamically routes generation based on the relative advantage between draft and target models. Instead of applying a fixed acceptance threshold, ARBITRAGE uses a lightweight router trained to predict when the target model is likely to produce a meaningfully better step. This routing approximates an ideal ARBITRAGE ORACLE that always chooses the higher-quality step, achieving near-optimal efficiency–accuracy trade-offs. Across multiple mathematical reasoning benchmarks, ARBITRAGE consistently surpasses prior step-level SD baselines, reducing inference latency by up to ∼ 2× at matched accuracy.

1 post · 2026

Timeline

Feature trailActive

Weight Locking via Deep Low-Rank Residual Distillation

This post introduces DLR-Lock, a novel defense mechanism for open-weight language models that prevents unauthorized modification of pretrained weights. DLR-Lock replaces standard MLPs with Deep Low-Rank Residual Networks (DLR-Nets), which exploit the inference-training asymmetry of automatic differentiation. This defense forces increased activation memory during backpropagation and creates architectural mismatches that complicate fine-tuning, effectively withstanding adaptive attackers while preserving original model capabilities. Experiments on LLMs validate its efficacy.

1 post · 2026

Timeline

Feature trailActive

UMAP kNN Graph Analysis

UMAP's internal kNN graph is being leveraged for enhanced data sensemaking. Standard graph algorithms like PageRank, k-core decomposition, and clustering coefficient are applied to this graph to identify representative data points, reveal dense core regions, and detect tight-knit neighborhoods of similar data points. These methods offer practical and competitive alternatives to existing sensemaking techniques.

1 post · 2026

Timeline

Feature trailActive

On-device Audio Synthesis

Siri Expressive Voices synthesizes rich, configurable speech in real time and entirely on device, powered by AFM 3 Core Advanced. This work presents the memory-efficient audio synthesis architecture: a detokenizer that converts semantic audio tokens into high-fidelity audio within the tight compute and memory budget of the Apple Matrix Coprocessor (AMX). The architecture decouples temporal and depth processing using a residual vector quantization (RVQ) representation with a three-component design—a streaming encoder, a temporal decoder, and a depth decoder. A single reusable depth decoder with Diffusion Transformer (DiT)-style stage conditioning generates all RVQ levels autoregressively, replacing dedicated per-level decoders. Causal sliding window attention with fixed-window key-value caching yields constant memory complexity. Deployed on the AMX, the detokenizer sustains roughly 10ms per generation step with a peak runtime memory of only ~21MB, enabling continuous streaming synthesis. This constant, small footprint replaces the linear and quadratic memory scaling of conventional transformer- and GAN-based approaches. Audio quality assessment confirms that the proposed architecture maintains synthesis fidelity while achieving computational efficiency gains. The proposed architecture is deployed in production as part of Siri Expressive Voices, powering a voice overhaul with Pace and Expressivity customizations sliders in Apple Devices and support for custom assistant voices. Operating at a 1-billion-parameter activation size within AFM 3 Core Advanced, it improves Mean Opinion Score (MOS) by +0.28 overall (4.15 vs. 3.87) and by +0.42 on conversational speech (4.24 vs. 3.82) over the prior on-device text-to-speech system.

1 post · 2026

Timeline

Feature trailActive

Sparse Attention for Video Generation

CalibAtt, a training-free method, accelerates text-to-video generation by identifying and skipping negligible token-to-token connections in transformer-based diffusion models. It achieves up to 1.58x end-to-end speedup while maintaining video generation quality and text-video alignment by performing an offline calibration pass to compile block-level sparsity and repetition patterns into optimized attention operations.

1 post · 2026

Timeline

Feature trailCooling

Token-Level Length Modeling

This post introduces the Length Value Model (LenVM), a token-level framework for modeling remaining generation length at each decoding step. LenVM formulates length modeling as a value estimation problem, assigning a constant negative reward to each generated token to predict a bounded, discounted return as a proxy for the remaining generation horizon. This provides annotation-free, dense, unbiased, and scalable supervision. Experiments show LenVM significantly improves exact length matching on LIFEBench and enables continuous control over the performance-efficiency trade-off on GSM8K. It also offers interpretable insights into generation dynamics, revealing how specific tokens influence reasoning towards shorter or longer regimes. LenVM supports length control, prediction, and interpretation, suggesting its potential as a general framework for length modeling and a length-specific value signal for future RL training.

1 post · 2025

Timeline

20252026