AI generated

Very confident
Model stylome-1.2-large
stylo.me/bf6c5e96d5b57122

I'll paste in a suggestion from Astra, in particular the "Learn when to apply LoopCD" part. idk if it is worth anything: LoopCD may improve a model's ability to make difficult decisions while simultaneously making its ordinary token distribution worse. That is not necessarily a contradiction. Agentic coding and conversational instruction-following reward rather different things. I suspect LoopCD changes the model's decision-making in a way that is particularly useful for agentic tasks. Consider a coding agent deciding whether to: * Inspect another file. * Run a test. * Modify a function. * Stop and report the result. These are relatively high-impact decisions. A small change in token probabilities can alter the entire trajectory of the agent. In contrast, conversational instruction-following depends heavily on maintaining a well-calibrated distribution over ordinary language, formatting, and control tokens. LoopCD amplifies the difference between an early and late recurrent prediction. That can be useful when the later loops have resolved uncertainty, but harmful when the later loops have introduced an unwanted bias. For example: Agentic coding Early loop: "Maybe inspect the function." Final loop: "Run the test." LoopCD amplifies the change towards running the test. Conversational instruction-following Early loop: "Certainly, here's a concise answer." Final loop: "Certainly, here's a detailed explanation with several caveats..." LoopCD amplifies the change towards the longer response, even if the user asked for brevity. These are illustrative examples, not measured token-level traces. The important point is that LoopCD doesn't know whether a change between loops is useful. It assumes that the direction of refinement is informative. ### Could training make LoopCD better? I think this is a very promising direction. The original method is training-free, but that doesn't mean training couldn't improve it. In fact, there are several ways to do this. ### A. Train with LoopCD active This is the simplest experiment. During training, calculate the guided prediction: z_g=z_f+\\omega(z_f-z_e) Then calculate the usual next-token loss using , rather than . The model would learn to produce good predictions under the guided distribution. This is entirely differentiable. You can backpropagate through the contrast operation and through both recurrent states. There is no need for a special "backwards LoopCD" algorithm. The ordinary chain rule handles it. The interesting consequence is that the shared recurrent weights receive gradients from both the final and earlier states. The model could learn to make the refinement direction more useful for the guided prediction. However, there's a potential failure mode: the model might learn to cancel the contrastive term, effectively making LoopCD do nothing. That's why I'd explicitly evaluate both guided and unguided inference during training. ### B. Train the model to predict the LoopCD distribution This is probably more interesting. Instead of simply using LoopCD during training, treat its output as a target distribution. For example: * Run the model normally. * Calculate the LoopCD-guided distribution. * Use that distribution as a teacher. * Train the model's ordinary final prediction to match it. This would encourage the final recurrent state to incorporate the useful information that LoopCD extracts from the earlier state. In other words, you're distilling the benefit of contrastive decoding back into the model itself. The result could potentially be a model that retains the LoopCD improvement without needing to apply LoopCD during inference. That's a very attractive outcome. ### C. Learn when to apply LoopCD This might be the most practical approach for agentic models. Rather than applying LoopCD to every token, train a small gating mechanism: z'=z_f+g(x)(z_f-z_e) Where determines how much guidance to apply. The gate could depend on: * Token uncertainty. * Difference between early and final predictions. * Token type. * Whether the model is reasoning, chatting, or calling a tool. * Whether the token is part of a control sequence. This would allow the model to use LoopCD aggressively when making important decisions, but leave ordinary conversational text mostly untouched. The Reddit implementation already hints at this approach by applying guidance selectively and avoiding thinking blocks and control tokens in its coding configuration. Digg +1 ### 3\. What I'd actually try For a model like Inkling 2 Mini, I'd run a small post-training experiment. * Take the original model and collect training traces with ordinary decoding and LoopCD. * Train a small adapter or continue training the model using LoopCD-guided targets. * Evaluate ordinary chat, coding, tool calling, and control-token reliability. * Compare against the original model with LoopCD enabled and disabled. The ideal result would be: * Better agentic performance. * No degradation in ordinary chat. * No additional inference overhead. * Possibly improved performance even when LoopCD is disabled. That last point would be particularly interesting. It would mean LoopCD is not merely a decoding trick, but a useful training signal for recurrent models. My bet: training a looped model to make better use of its own refinement trajectory could be more valuable than simply applying LoopCD at inference. The original method shows that the trajectory contains useful information. Training could teach the model to preserve and exploit that information more directly.