k-means vs. e-means, clearly explained
Oracle has introduced image-native memory capabilities in Oracle AI Agent Memory to expand agent context beyond text. Images are stored alongside embedded text descriptions in Oracle AI Database, scoped to specific users, agents, or threads. Vector search runs across descriptions to retrieve metadata first, loading raw image bytes into context only when needed. This approach avoids the cost of repeatedly passing image tokens in subsequent conversation turns while preserving multimodal context. Meta FAIR introduced e-means, a clustering algorithm that updates centroids after processing small batches rather than waiting for full-pass epochs like Lloyd's k-means. By utilizing an exponential moving average with a cosine schedule alongside automated cluster revival and pre-tuned scaling laws, e-means matches the 25-epoch loss of standard k-means in roughly 1.4 to 2.6 epochs. Implemented in Faiss with PyTorch, Triton, and CuTe backends, it yields 10x to 45x GPU speedups on billion-scale embedding workloads. A Google research paper examines how recursive self-improvement (RSI) breaks down when an agent harness optimized for one model is transferred to another. When an agent harness evolved on Claude Opus was migrated to Gemini, it underperformed Gemini's baseline harness because the optimization history and reasoning behind previous edits were lost. To address this issue, Google introduced Self-Improvement Memory (SIM), a structured log for the optimizer tracking problems, proposed edits, rationale, and experimental outcomes across models. Benchmarks showed that utilizing SIM enabled roughly three times more performance improvement during cross-model transitions compared to standard optimization runs.
Contents
Image-aware agent memory!
Oracle has introduced image-native memory capabilities in Oracle AI Agent Memory to expand agent context beyond text. Images are stored alongside embedded text descriptions in Oracle AI Database, scoped to specific users, agents, or threads. Vector search runs across descriptions to retrieve metadata first, loading raw image bytes into context only when needed. This approach avoids the cost of repeatedly passing image tokens in subsequent conversation turns while preserving multimodal context.
- Oracle AI Agent Memory allows agents to store images and retrieve them using plain text queries.
- Image descriptions are embedded for vector search while raw image bytes are held in Oracle AI Database.
- Search queries return descriptions and metadata first, keeping raw image data out of the prompt context until explicitly requested.
- Conversational turns can preserve ordered combinations of text and image content.
- Deferred loading of image bytes prevents paying for image tokens on every conversational turn.
k-means vs. e-means, clearly explained
Meta FAIR introduced e-means, a clustering algorithm that updates centroids after processing small batches rather than waiting for full-pass epochs like Lloyd's k-means. By utilizing an exponential moving average with a cosine schedule alongside automated cluster revival and pre-tuned scaling laws, e-means matches the 25-epoch loss of standard k-means in roughly 1.4 to 2.6 epochs. Implemented in Faiss with PyTorch, Triton, and CuTe backends, it yields 10x to 45x GPU speedups on billion-scale embedding workloads.
- e-means updates centroids iteratively after small batches using an exponential moving average following a cosine schedule.
- e-means reaches the clustering loss achieved by Lloyd's k-means after 25 epochs in only 1.4 to 2.6 epochs.
- On GPUs, e-means achieves 10x to 45x wall-clock speedups over state-of-the-art k-means baselines.
- Dead or empty clusters are revived every 5 batches by splitting crowded donor clusters, which provided the largest ablation benefit.
- Hyperparameters like batch size and schedules are derived from fixed scaling laws fitted across 75,000 optimization runs on the DEEP dataset.
- The algorithm was demonstrated on DINO10B, clustering 10 billion embeddings into 16 million clusters in 2.5 epochs.
- e-means is integrated into Faiss and supports GPU execution via PyTorch using Triton or CuTe assignment backends.
Why self-improving agent harnesses break when the model changes
A Google research paper examines how recursive self-improvement (RSI) breaks down when an agent harness optimized for one model is transferred to another. When an agent harness evolved on Claude Opus was migrated to Gemini, it underperformed Gemini's baseline harness because the optimization history and reasoning behind previous edits were lost. To address this issue, Google introduced Self-Improvement Memory (SIM), a structured log for the optimizer tracking problems, proposed edits, rationale, and experimental outcomes across models. Benchmarks showed that utilizing SIM enabled roughly three times more performance improvement during cross-model transitions compared to standard optimization runs.
- An agent harness evolved via recursive self-improvement on Claude Opus performed worse than Gemini's default harness when evaluated on Gemini across all tested domains.
- Harness failure during model transfers occurs because the optimizer only inherits code changes without the context, reasoning, or historical failure traces that justified them.
- Self-Improvement Memory (SIM) provides an optimizer-level log documenting recurring problems, attempted edits, underlying reasoning, predicted fixes, and actual test outcomes.
- On Opus-to-Gemini workspace tasks, starting from a score of 68.41, optimization with SIM reached 84.75, compared to 73.42 without SIM.
- SIM outperformed runs without it in 9 out of 10 independent coding benchmarks, achieving an average gain of 2.36 points.