Command Palette
Search for a command to run...
BaseRSI: تحسين ذاتي تكراري لنموذج رؤية-لغة أساسي عبر استيعاب الأدوات دون تدريب
BaseRSI: تحسين ذاتي تكراري لنموذج رؤية-لغة أساسي عبر استيعاب الأدوات دون تدريب
الملخص
ينتقل التحسين الذاتي التكراري (RSI) من الاعتماد على الأدوات والمحفزات المحيطة بالنموذج الأساسي نحو النموذج نفسه. غير أن الأساليب الحالية للتحسين الذاتي التكراري ما تزال تواجه تحديات جوهرية، منها مكاسب مرتبطة بالأدوات تبقى خارج النموذج الأساسي، وإشراف صندوق أسود لا يقرأ سوى مخرجات النموذج، وتعديلات غير دقيقة يُحدَّد موضعها وقوتها مسبقًا. ولمعالجة هذه التحديات، نقترح BaseRSI، وهو نموذج جديد من الاستيعاب التكراري للأدوات: يحسِّن النموذج الأساسي أداته، ثم يكتب ما تضيفه الأداة في أوزانه الخاصة عبر تعديلات لا تتطلب تدريبًا، جولة بعد جولة على استجاباته الذاتية. ولدعم هذا النموذج، نقدم ReGap، وهي آلية تشرف على كل كتلة محولات بفرق التنشيط عالي الأبعاد الذي تُحدثه الأداة في تلك الكتلة وحدها، وتحدِّث أوزان الكتلة على امتداد هذه الإشارة في فضاء جزئي منخفض الأبعاد. وبناءً على هذه الآلية، نقترح كذلك ReKey، وهي خوارزمية تكتب هذه الإشارة بالانحدار في عدد قليل من عصبونات المفتاح-القيمة في كل كتلة، وتقيس موضع كل تعديل وقوته على استجابات النموذج الذاتية. علاوة على ذلك، يؤدي النموذج الأساسي كل دور في هذا التكرار بالتمريرات الأمامية وحدها، وتتراكب تعديلاته المكتوبة في مواضع مختلفة في نقطة تفتيش واحدة دون إعادة ملاءمة. تُظهر النتائج التجريبية على عشرة معايير للاستدلال البصري أن BaseRSI يحسِّن نموذج رؤية-لغة أساسيًا باستمرار، سواء في التوزيع أو على معايير محجوزة. الكود متاح على: https://github.com/beita6969/BaseRSI.
One-sentence Summary
Researchers at The Chinese University of Hong Kong, Shenzhen, National University of Singapore, and collaborating institutions propose BaseRSI, a training-free recursive self-improvement paradigm for vision-language models that internalizes harness gains into base weights via ReGap block-wise activation-difference supervision and ReKey key-value neuron regression, improving in-distribution and held-out visual reasoning across ten visual reasoning benchmarks.
Key Contributions
- Introduces BaseRSI, a recursive harness internalization paradigm in which a base model improves its own harness, writes accepted harness gains into its own weights through training-free edits over successive rounds on its own responses, and fills every role of the recursion through forward passes alone.
- Presents ReGap, which supervises every transformer block with the teacher-student activation difference that an accepted harness entry induces at that block, and ReKey, which writes this signal by regression into a few key-value neurons per block while measuring the site and strength of each edit on the model’s own responses.
- On five in-distribution and five held-out visual reasoning benchmarks across perception, counting, charts, spatial reasoning, and visual logic, BaseRSI consistently improves a base vision-language model, outperforms prompting, visual zoom-in, harness evolution, and fine-tuning on every benchmark, and yields an edited checkpoint that exceeds its own harness while composing edits from different sites without refitting.
Introduction
In visual reasoning, recursive self-improvement systems often improve a frozen foundation model by evolving the prompt, tool, and context harness around it. These harness-level gains improve accuracy, controllability, and reuse, but they remain in the request, incurring cost on every call and leaving the base model unable to absorb what the harness learns. Prior approaches either keep gains outside the weights, supervise weights only through slow and noisy black-box output signals, or edit weights at preset locations and strengths that can miss targets and damage general ability. The authors propose BaseRSI, which recursively internalizes harness gains into the base model by measuring teacher-student gaps at every block with ReGap and writing them as low-dimensional updates into key-value neurons with ReKey.
Method
The authors propose the BaseRSI framework, a system designed to enable vision-language models to achieve recursive self-improvement by internalizing external harnesses into their own weights. The framework operates through a continuous cycle where a fast harness system records new experiences and a slow weight system consolidates them.
The overall pipeline is governed by Recursive Harness Internalization, which coordinates an outer loop for harness evolution and an inner loop for weight internalization. In the outer loop, the base model proposes harness entries from its own failures. An acceptance test evaluates these candidates, retaining only those entries whose accuracy gains generalize across benchmarks. This ensures that the fast system supplies verified targets that are worth keeping. Once an entry is accepted, the inner loop takes over to move the knowledge from the request-level harness into the model weights. This is formulated as a knowledge distillation process where the model with the harness acts as the teacher, and the original model acts as the student. To address the covariate shift inherent in imitation learning, the inner loop runs in multiple rounds. In each round, the edited student generates responses, the teacher labels them, and the edit is refitted on the pooled responses, ensuring the student matches the teacher on its own generated trajectories.
To facilitate this internalization, the authors introduce ReGap, a mechanism that defines what is taught in each residual block. ReGap computes a high-dimensional signal called the gap, which represents the direct effect of the harness entry on the block output. The gap for block l is defined as gl=Fl(sl−1c;zl−1c)−Fl(sl−1c;zl−1), where Fl is the block map and the superscript c marks the teacher states. This gap serves as the exact descent direction to close the distance between the student and the teacher without requiring backpropagation from the final output. Since the student must reproduce this gap from its own state, ReGap formulates a low-dimensional update. This update is implemented as a small set of key-value neurons within the SwiGLU MLP, where each neuron stores a key-value pair. The update function is expressed as El(x)=γωβ(kl⊤x)∑i=0r(ul,i⊤x)vl,i, allowing the model to read the input along specific readout directions and write values. This design effectively rewrites only a few neurons per block while keeping the rest of the architecture bit-identical.
The actual computation of these updates is handled by ReKey, an algorithm that writes the gap into the weights using only forward passes. ReKey first determines the site of the edit by measuring whether the entry primarily affects the linear attention layers or the patch embedding. A high divergence fraction directs the entry to the MLP neurons, while a low fraction indicates that the entry alters the visual input, directing it to the patch embedding kernel. Once the site is established, ReKey reads the gap by running teacher-forced forward passes to label every block with input-gap pairs. It then writes the gap by performing ridge regression to fit a linear readout of the MLP input, reducing the fit to the top r directions that carry the most predictive power. Finally, ReKey measures the strength of the edit through a line search on held-out student responses to determine the optimal step size γ, ensuring the internalized weights accurately replicate the teacher behavior.
Experiment
The study evaluates BaseRSI on five in-distribution benchmarks for development and five held-out out-of-distribution benchmarks, using unseen images and comparing against prompting, visual zoom-in, harness evolution, and fine-tuning on the same base model plus several other base models. The results show that BaseRSI improves both in-distribution and out-of-distribution performance by internalizing a learned harness into the weights, and this gain generalizes across benchmarks and base models while fine-tuning on the same questions does not. Additional experiments find that the edited model alone exceeds the model with the harness in the request, that rounds on the student's own responses make the edit more stable, that per-block ReGap supervision carries more of the gain into weights than output distillation, and that measured ReKey choices for site, strength, and routing outperform preset alternatives at lower computational cost.
Under matched reasoning effort, token budget, and evaluator, the edited Qwen3.8-27B model achieves the highest mean accuracy on all five in-distribution and all five held-out benchmarks. Relative to its base model, average accuracy rises by 11.7 points in distribution and 6.1 points out of distribution, while prompting yields only modest gains and fine-tuning on the same development questions barely moves the averages; the benefit is attributed to internalized edits that transfer to unseen images and held-out benchmarks. The edited base model attains the highest mean accuracy on every in-distribution and held-out benchmark, surpassing same-base prompting and closed-source reference models. Average accuracy improves by 11.7 points on in-distribution benchmarks and 6.1 points on held-out benchmarks relative to the base model. Chain-of-thought prompting produces only modest average gains, and fine-tuning on the same development questions barely moves the averages. The gains come from writing the harness into model weights rather than acting through the request, and they generalize to held-out benchmarks with unseen images.
BaseRSI improves accuracy over the base model and the view edit alone, with the procedure edit adding gains across both in-distribution and held-out benchmarks. Ablations show that internalizing the harness in weights, replaying the model's own responses, and using measured per-block sites, strengths, and keys are important choices; replacing them with request-only harnesses, teacher-only refits, direct state differences, null readouts, or preset keys weakens or removes the gains. Internalizing the harness into weights yields stronger accuracy than keeping it in the request, particularly on held-out benchmarks. The procedure edit improves over the view edit alone on every benchmark, and rounds on the model's own responses help held-out performance compared with refitting only on teacher responses. Measured edit components are critical: direct state-difference signals, null readouts, MLP-neuron placement, mean-gap-only fitting, and constant keys all reduce or erase the effectiveness of the edit.
The ablations show that the procedure edit depends on replaying the model's own responses and supervising per-block gap signals over many positions. Simplified alternatives such as base-model replay, last-block state, tail-only positions, or macro-average readouts restore less and yield weaker in-scope, in-distribution, and out-of-distribution gains. The measured choices for readouts, neurons, and acceptance collectively produce the strongest improvements. Replaying two rounds of the model's own responses gives the highest restoration and in-scope gain among replay variants, while base-model replay is less effective. Per-block gap supervision across up to 512 positions outperforms last-block and tail-only signals; the last-block state restores substantially less. Using more fitting responses improves restoration and in-scope gain, and fitted readouts with least-active neurons outperform the macro-average-only alternative. The leave-one-benchmark-out acceptance setting with 64 fitting responses yields the largest in-scope gain among the listed configurations.
The evaluation compares an edited Qwen3.8-27B model with prompting, fine-tuning, and reference models on five in-distribution and five held-out benchmarks, finding that internalizing a harness into model weights improves accuracy and transfers to unseen images. Ablations attribute these gains to the full BaseRSI procedure, especially internalized rather than request-only harnesses, replaying the model's own responses, and measured per-block edit components. Further ablations confirm that per-block gap supervision across many positions and fitted readout, neuron, and acceptance choices are critical, while simplified alternatives weaken restoration and generalization.