Explore the research collection
7 entries · Follow this search
- Paper
Mid-Harness: Scaling Actions Between Model and Harness for Terminal Agents
Terminal agents act through stochastic model generations, but the ability to generate a useful action doesn't ensure reliable execution — one bad shell command (wrong package install) can poison the environment even when the model could have generated a better alternative. Investigates allocating test-time compute at the model-harness boundary: Mid-Harness samples and verifies candidate actions before forwarding one for execution, leaving generator and harness unchanged. With a TMAX-9B generator, more action sampling helps little under weak verification, while a capable verifier exploits useful alternatives from the same generator. On TerminalBench-Lite, a GPT-5.6 Sol verifier raises Pass@1 from 50.00% to 68.03% with 8 sampled actions; with TMAX-9B as its own verifier, pairwise verification performs best; distilling the stronger verifier into TMAX-9B improves Pass@1 further without touching the generator. Combining action and trajectory scaling reaches higher success at lower estimated token cost than more trajectories alone. Key design rule: spend more on the verifier than on extra samples. Practitioner takeaway (@thesignalnow): label candidate pairs offline with the strong verifier, fine-tune a small model, deploy it as the always-on checker — avoids paying frontier-model prices per action. Directly relevant to the user's agent-harness work.
- Paper
Reason in Style: Discovering and Controlling Style in Language Models
Language models learn style and content jointly, making stylistic variation hard to identify and control. Trains an autoencoder to separate style from content representations on 100K+ verified math reasoning traces from nine teacher models (gemma, gpt-5, gpt-oss, llama, olmo, phi-4, qwen2.5, qwen3, qwen3.5), discovering six recurring yet imbalanced styles. Fine-tunes Qwen3 students (0.6B, 1.7B, 4B) with a style prefix and importance weighting to balance styles, then conditions on each style at eval: improves Pass@k over SFT on the same data across six math benchmarks. Key finding: style affects correctness — the probability of solving a problem depends on the style conditioned on, and different problems benefit from different styles. Stylistic variation in model-generated data can be discovered unsupervised and made explicit, giving both control and improved reasoning performance. Strong correspondence between requested and realized styles.
- Paper
Gumbel Straight Flow: Distilling Autoregressive Models into One-step Flow Maps
Can autoregressive language models be used as teachers for flow-map parallel samplers? Yes — via the Gumbel-max trick: sampling from an AR model is argmax(logits + Gumbel noise) per token. The paper defines a flow matching process directly over this noise-token coupling and theoretically demonstrates the induced coupling between Gumbel noise and one-hot token sequences yields non-intersecting linear paths from noise to sequence representations. They then distill into a bidirectional flow-map student: the AR teacher supervises the velocity along the path (tangent condition), and a consistency loss (flow map semigroup objective) trains few-step jumps. At inference, GSF maps noise to a full token sequence in parallel in just 1-4 steps. Across OpenWebText, LM1B, TinyStories, and XSum, GSF outperforms several few-step baselines (FMLM, GD, discrete diffusion) establishing a strong compute-quality Pareto frontier, and outperforms current few-step language generation baselines on pretraining and downstream tasks. Comparison table: GSF is the only method with all of parallel generation, deterministic pairing, and straight paths.
- Paper
Adversaries can still steal reasoning from American frontier models via Third-Party Cloud Aggregators ("Stolen Thoughts" update)
Updated paper on reasoning extraction: patching your own API does not secure your cloud-hosting ecosystem. Most critical findings: reasoning replay attacks still intermittently work on Microsoft Azure for every OpenAI model (Astra included) and for Anthropic up to Sonnet 5, with one decode returning the trace verbatim; scratchpad reasoning attacks (ask the model to put its reasoning into a tool argument, publicly demonstrated by @_can1357) still extract reasoning from every OpenAI model and from Opus 4.6 and Sonnet 5; today only Opus 4.1, Fable 3, and Fable 5 do not expose their reasoning. A September 13 audit found replay extraction blocked on direct OpenAI/Anthropic APIs but still working on Azure for the same models -- same models, different defenses, depending on which platform serves them. OpenAI publicly disclosed a reasoning-extraction campaign citing this work: operators copied encrypted reasoning from one conversation and asked a model in another to decrypt and transcribe it; activity began July 1, spiked July 24-25 with 16,000 requests using an extraction pattern from over 4,000 users; related prompt-pattern activity across a cluster of 15,000+ users was fully disrupted by July 28. The authors argue patches must cover all attacks and hosting clouds, or attackers choose the route where protection is weakest; findings shared to accelerate defense rollout.
- Paper
ProgramDistill: From Interactive Web Apps to Verifiable Reference-Guided SWE Tasks
Turns interactive web apps into verifiable, reference-guided software-engineering tasks. The mine-craft-patch pipeline replays app behaviors to produce 1,975 replay-verified behaviors across 26 apps and 4,063 tasks with no human intervention.
- Paper
A Smaller Transformer in Your Transformer
arXiv 2609.20100v1 (cs.CV; submitted 2026-09-17; accepted BMVC 2026). Formalises ViT block redundancy (contiguous layers with high functional similarity) and proposes Transformer-Within-Transformer (TWT): max–min DP discovery of redundant phases, auditioned single-layer surrogate init, then single-stage deep-supervision distillation. Unlike Raptor/BRH (recurrent shared layer keeps FLOPs) or TOAST linear maps (lose token mixing), TWT replaces each phase with one ViT layer. Natural images: ~6-layer TWT ~half FLOPs, competitive ImageNet (e.g. DINOv2 B/14 84.2% vs 84.6% baseline / 84.0% Raptor-6). Histopathology H0-mini/Hibou-B: often matches or improves MIL QWK/accuracy at 3–5 layers. ADE20k denser drop. Code: https://github.com/dsb-ifi/TWT.
- Paper
Speculative Knowledge Distillation: Bridging the Teacher-Student Gap Through Interleaved Sampling
arXiv 2410.11325: Speculative Knowledge Distillation (SKD)—student proposes tokens; teacher replaces those outside top-K; mixes on-policy alignment with teacher quality. Discord Philipp Schmid: Google method addressing on-policy KD limits via interleaved teacher/student sampling.