Method for multilingual learning of language models using rlhf using synthetic eye gaze trajectories

By integrating synthetic gaze trajectories into the RLHF method, the method accelerates convergence and reduces costs while improving accuracy in multilingual language models, addressing the inefficiencies of existing RLHF training methods.

RU2865495C1Active Publication Date: 2026-07-06AVTONOMNAYA NEKOMMERCHESKAYA ORGANIZATSIYA VYSSHEGO OBRAZOVANIYA UNIV INNOPOLIS
View PDF 5 Cites 0 Cited by

Patent Information

Authority / Receiving Office
RU · RU
Patent Type
Patents
Current Assignee / Owner
AVTONOMNAYA NEKOMMERCHESKAYA ORGANIZATSIYA VYSSHEGO OBRAZOVANIYA UNIV INNOPOLIS
Filing Date
2025-12-30
Publication Date
2026-07-06

AI Technical Summary

Technical Problem

Existing methods for training language models using reinforcement learning based on human feedback (RLHF) suffer from slow convergence and high computational costs due to sparse reward signals, lack of integration of multilingual gaze models, and inability to transfer gaze cues between languages without real eye-tracking data.

Method used

Integrate synthetic gaze trajectories generated by a multilingual model based on MECO/Eyettention/mBERT into a reward model, distributing rewards according to predicted gaze patterns, and optimize the policy model with dense token-level rewards to accelerate convergence and improve accuracy.

Benefits of technology

Accelerates RLHF convergence by 1.5-2 times, reduces computational costs, and enhances the accuracy of reproducing human attention patterns in multilingual models, enabling training without additional eye-tracking data.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

FIELD: computer technology.SUBSTANCE: method for multilingual training of language models using reinforcement learning based on human feedback using synthetic gaze trajectories, comprising the steps of feeding multilingual text to a gaze prediction model based on a multilingual eye movement corpus and a multilingual BERT model to generate a fixation sequence, computing visual attention features including first-pass regression rate, skip rate, first-pass and total fixation counts, and normalized Levenshtein distance, generating a gaze-aware reward model by projecting features into a latent space through a fully connected network, distributing rewards to tokens proportional to fixation probabilities, and optimizing the policy using PPO or GRPO algorithms with a modified advantage that takes into account the Levenshtein distance.EFFECT: multilingual training in thirteen languages without collecting real eye tracking data, achieving the accuracy of reproducing the features of visual attention.6 cl
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Technical field

[0002] The invention relates to the field of artificial intelligence, namely to methods for training language models using reinforcement learning based on human feedback (RLHF), using visual attention models and natural language processing for multilingual applications

[0003] Technology Level

[0004] There are known methods for training language models using RLHF, which include supervised fine-tuning (SFT) stages, constructing a reward model based on human preferences, and policy optimization using PPO or GRPO algorithms, where rewards are given at the entire sequence level (US20250111242A1, WO2022241556A1). These approaches suffer from the sparseness of reward signals, leading to slow convergence and high computational costs.

[0005] There are also models for predicting eye gaze trajectories (scanpaths) during reading that use Eyettention-type neural networks on MECO-type datasets to generate visual attention features (FFR, SR, FFC, TFC, NLD), primarily for NLP tasks. However, these models are used separately for text analysis and are not integrated into RLHF pipelines.

[0006] The closest analog for RLHF is the method from US20250111242A1, which uses RLHF with LLM for processing medical documents, where the model is trained on preferences without taking visual attention into account. For gaze modeling, multilingual models based on MECO (file:7) are used, but without regard to model training.

[0007] There are known attempts to improve RLHF through attention-based reward distribution, but without using predicted human gaze patterns and without multilingual support (WO2023083458A1, US20180260700A1).

[0008] Drawbacks of the state of the art: The lack of integration of multilingual gaze models in RLHF leads to inefficient use of attentional cues when trained in multiple languages, slow convergence (1.5-2x worse), and the inability to transfer gaze cues between languages ​​without real eye-tracking data.

[0009] Technical task

[0010] The technical problem of the present invention is to develop a method for multilingual training of language models using the RLHF method, which ensures acceleration of the convergence of the policy optimization process by 1.5-2 times due to the integration of synthetic gaze trajectories (scanpaths) generated by a multilingual model based on MECO / Eyettention / mBERT into a reward model (GazeRM) and reward distribution (GazeDistrib), with the ability to transfer gaze signals between languages ​​without additional eye-tracking data.

[0011] The problem is solved by creating a single pipeline, where:

[0012] Multilingual gaze model generates FFR, SR, FFC, TFC, NLD features for texts in 13 languages;

[0013] These features are projected into the reward model space and distributed among tokens in accordance with human attention patterns;

[0014] The policy model (PPO / GRPO) is trained with dense gaze-aware signals, which eliminates the sparseness of the feedback.

[0015] Essence of the invention

[0016] The essence of the invention lies in a method for multilingual training of language models using the RLHF method, which includes the following steps:

[0017] Generating synthetic gaze trajectories 〈f1,...,fn〉 for input text W=〈w1,...,wm〉 in multiple languages ​​using a multilingual Eyettention model pretrained on MECO with multilingual BERT, with the calculation of NLD, FFR (first-pass regression rate), SR (skipping rate), FFC (first-pass fixation counts), and TFC (total fixation counts) metrics.

[0018] Formation of a gaze-aware reward model by projecting gaze features into the latent space of the reward model through a feedforward network, followed by addition / concatenation to the first-layer activations.

[0019] Distribute the scalar reward across tokens according to the predicted gaze patterns (GazeDistrib), where the distribution weights are determined by the fixation probabilities from step 1.

[0020] Optimizing a policy model with PPO or GRPO algorithms using dense token-level rewards that take into account language-specific reading patterns.

[0021] The novelty is achieved through the joint use of a multilingual gaze model specifically for the dynamic distribution of rewards in the RLHF pipeline, which is not available in known analogues.

[0022] Technical result

[0023] The technical result to be realized is as follows:

[0024] Accelerates RLHF convergence by 1.5-2 times while maintaining or improving the quality of the policy model (normalized reward grows faster for 50-100 training steps).

[0025] Ability to train unified multilingual policy models without collecting eye-tracking data for each language separately (transfer via MECO + mBERT).

[0026] Reducing computational costs by eliminating the sparseness of reward signals (dense token-level feedback instead of sequence-level).

[0027] Improved accuracy of reproducing human attention patterns in generated model responses (MAE for FFC / TFC is close to human baseline 85-93%).

[0028] Extending the scope of RLHF to low-resource languages ​​without accessible human preferences using synthetic gaze signals as proxies.

[0029] Detailed description of the invention

[0030] The present method for multilingual learning of language models by the RLHF method using synthetic gaze trajectories is implemented as follows.

[0031] Stage 1. Generating synthetic gaze trajectories

[0032] The input text W = 〈w1, ..., wm〉 is given in one of the 13 languages ​​of the MECO dataset. The multilingual Eyettention model, pretrained on the Multilingual EyeMovement Corpus (MECO) using multilingual BERT, generates a fixation sequence 〈f1, ..., fn〉, where fi is the index of word j (1 ≤ j ≤ m) at which the gaze is directed.

[0033] Visual attention features are calculated from the trajectories:

[0034] FFR (first-pass regression rate) - the probability of regression on a word in the first pass;

[0035] SR (skipping rate) - the probability of skipping a word;

[0036] FFC (first-pass fixation counts) - the number of fixations in the first pass;

[0037] TFC (total fixation counts) - total number of fixations per word;

[0038] NLD (Normalized Levenshtein Distance) = LD(S1,S2) / max(|S1|,|S2|) between the predicted S1 and reference S2 trajectory.

[0039] The metrics are estimated with 100-MAE accuracy, where the multilingual model achieves MAE=0.19 for NLD and 85-93% for FFR / SR / FFC / TFC, outperforming monolingual counterparts.

[0040] Stage 2. Formation of a gaze-aware reward model (GazeRM)

[0041] The scalar reward r from the standard reward model is adjusted by gaze features. The features {FFR, SR, FFC, TFC, NLD} are projected into the reward model's latent space via a trainable feedforward network and added to the first-layer activations (or concatenated).

[0042] Updated reward model r_gaze(t) = r(t) + MLP_gaze(gaze_features(t)), where MLP_gaze is trained on preferences with gaze annotations, improving ranking accuracy by 5-10%.

[0043] Stage 3. Distribution of token rewards (GazeDistrib)

[0044] The scalar r_gaze is distributed across tokens: r_token(i) = r_gaze × p_gaze(i), where p_gaze(i) is the probability of fixation on the i-th token from the Eyettention model (summed over the subtokens of the word).

[0045] Unlike attention-based distribution, GazeDistrib uses human reading patterns: nouns / verbs receive more weight (mean attention is 1.2-1.5x higher than adverbs / prepositions).

[0046] Stage 4. Policy model optimization

[0047] Policy model (LLaMA-7B or similar) is optimized for PPO / GRPO with token-level rewards:

[0048] Advantage A = Q(s,a) - V(s) is modified: A_gaze = A × (1 + α×NLD), where α is a hyperparameter;

[0049] Loss = -log π(a|s) × A_gaze + β×KL_divergence.

[0050] Convergence is accelerated by 1.5-2 times: normalized reward reaches 1.0 at 50-100 steps instead of 150-200 (HH-RLHF dataset).

[0051] Sequence of implementation stages

[0052] The process involves the sequential execution of the following operations:

[0053] The input multilingual text W is fed to the Eyettention + mBERT multilingual model to generate scanpaths 〈f1..fn〉.

[0054] Features {FFR, SR, FFC, TFC, NLD} are calculated from scanpaths.

[0055] The reward model generates r_gaze with the projection of MLP_gaze onto gaze features.

[0056] GazeDistrib distributes r_gaze among tokens: r_token(i) = r_gaze × p_gaze(i).

[0057] PPO / GRPO optimizer updates the policy model using dense token-level rewards.

[0058] The scanpaths generation block operates autonomously for languages ​​without eye-tracking data (transfer learning via mBERT). Subsequent blocks use language-specific gaze patterns (SR / TFC correlate with morphology).

[0059] Advantages of implementation

[0060] Scalability: 46k MECO samples cover 13 languages, scanpaths generation is O(m) time;

[0061] Adaptivity: dynamically update MLP_gaze on new preferences;

[0062] Interpretability: p_gaze(i) visualization shows "attentive" regions of the response.

[0063] The method achieves end-to-end multilingual RLHF without collecting real eye-tracking data for each language.

[0064] Examples of implementation

[0065] Example 1. Training a multilingual policy model on the HH-RLHF dataset

[0066] Input text: sentence in Russian from HH-RLHF "How to cook borscht traditionally?" (length m=7 words).

[0067] Stage 1. The Eyettention + mBERT multilingual model generates scanpath: 〈f1=1, f2=3, f3=2, f4=5, f5=4, f6=7, f7=6〉 (regression on "borscht" and "traditionally"). Calculated features: FFR=0.14, SR=0.23 (high for "how"), FFC=1.8, TFC=2.4, NLD=0.19.

[0068] Stage 2. The standard reward model produces r=0.75 for the response "Recipe: beets, cabbage...". MLP_gaze projects features, r_gaze=0.82 (+9.3%).

[0069] Stage 3. GazeDistrib: r_token = [0.05, 0.12, 0.18, 0.09, 0.15, 0.13, 0.10], where the maximum is on the “borsch” / ”traditional” tokens (p_gaze=0.22).

[0070] Stage 4. PPO updates LLaMA-7B: A_gaze=1.12 (α=0.5), loss decreases by 12% per step. Convergence: normalized reward=1.0 in 72 steps (vs 152 baseline).

[0071] Example 2. Transfer learning from English to Russian (low-resource)

[0072] Input: English text with eye-tracking data "How to make traditional borscht?". Generated by scanpath in English (FFR=0.12, SR=0.21).

[0073] Stage 1. mBERT translates attention patterns into Russian equivalents through cross-lingual embeddings. Scanpath for "How to cook borscht traditionally?": FFR=0.15, SR=0.19 (morphological adaptation).

[0074] Stage 2-4. Similar to Example 1. Result: MAE=86.2% for Russian TFC (human baseline=87.3%), without collecting Russian eye-tracking data.

[0075] Example 3. Comparison with baseline (PPO without gaze)

[0076] Dataset: HH-RLHF (10k preference pairs).

[0077] Below is the comparison table 1 of Baseline PPO and GazeRLHF.

[0078] Table 1

[0079] Metrics Baseline PPO GazeRLHF (proposed method) Steps to convergence 168 84 Final normalized reward March 1 July 1 Computational costs (GPUh) 24 13 MAE FFC (human match) 91.2% 92.4%

[0080] Example 4. GRPO option

[0081] Similar to Example 1, but with GRPO instead of PPO. GazeDistrib integrates with group-relative policy optimization: r_group(i) = r_gaze × p_gaze(i) for a batch of 4 responses. Convergence: 68 steps (vs 142 baseline GRPO).

[0082] In each example, the proposed method demonstrates a speedup of 1.8-2.0 times with a quality improvement of 3-5% (win-rate according to preference).

[0083] Thus, the claimed set of features ensures the achievement of the claimed technical result, which differs from the state of the art in the following set of essential features:

[0084] Integration of multilingual Eyettention + mBERT model on MECO to generate synthetic scanpaths 〈f1,...,fn〉 and features {FFR, SR, FFC, TFC, NLD} in 13 languages ​​without collecting real eye-tracking data for each language.

[0085] Gaze-aware reward model (GazeRM) with projection of gaze features via MLP_gaze into the latent space of the reward model: r_gaze(t) = r(t) + MLP_gaze(gaze_features(t)), which improves the accuracy of preference ranking by 5-10%.

[0086] GazeDistrib - token reward distribution based on human gaze patterns: r_token(i) = r_gaze × p_gaze(i), where p_gaze(i) reflects real fixation probabilities (nouns / verbs: 1.2-1.5x higher).

[0087] Advantage modification in PPO / GRPO: A_gaze = A × (1 + α×NLD), providing 1.5-2 times faster convergence (84 steps vs 168 baseline).

[0088] The specified set of features is absent in the set in known analogues (US20250111242A1, WO2022241556A1, WO2023083458A1), where:

[0089] RLHF uses sparse sequence-level rewards without gaze information;

[0090] Eyettention models are only applicable to NLP analysis without integration into RLHF;

[0091] Multilingual models cannot be combined with reward distribution.

[0092] The technical effect is confirmed by experiments: normalized reward=1.07 (+4%) with 50% fewer steps, MAE=85-93% (human baseline), the possibility of transfer learning to low-resource languages.

[0093] Industrial applicability is ensured by implementation on standard GPUs (LLaMA-7B, 13 GPUh), scalability to 46k MECO samples, and application in multilingual LLMs (ChatGPT, LLaMA multilingual).

[0094] The claimed method has an inventive step, since it solves the problem of RLHF signal sparseness through a non-obvious combination of multilingual gaze modeling with token-level reward distribution.

Claims

1. A method for multilingual training of language models using the RLHF method using synthetic gaze trajectories, characterized in that it comprises the following stages: feeding multilingual text W=〈w1,...,w m 〉 into a multilingual Eyettention model pretrained on the Multilingual EyeMovement Corpus (MECO) with multilingual BERT to generate a fixation sequence 〈f1,...,f n 〉, where fᵢ is the index of the word j (1≤j≤m); computations from 〈f1,...,f n 〉 features of visual attention FFR, SR, FFC, TFC and NLD = LD(S1,S2) / max(|S1|,|S2|); forming a gaze-aware reward model by projecting features {FFR, SR, FFC, TFC, NLD} into the latent space of the reward model through the trainable feedforward network MLP_gaze to obtain r_gaze(t) = r(t) + MLP_gaze(gaze_features(t)); distribution of rewards by tokens according to the formula r_token(i) = r_gaze × p_gaze(i), where p_gaze(i) is the probability of fixation on the i-th token from the Eyettention model; optimization of the policy model using PPO or GRPO algorithms with modified advantage A_gaze = A × (1 + α × NLD), where A = Q(s,a) - V(s).

2. The method according to claim 1, characterized in that the multilingual Eyettention model uses a pre-trained multilingual BERT for cross-lingual transfer of gaze patterns to languages ​​without eye-tracking data.

3. The method according to claim 1, characterized in that the features FFR, SR, FFC, TFC are calculated for language-specific reading patterns, achieving MAE=0.19 for NLD and 85-93% for the remaining features.

4. The method according to paragraph 1, characterized in that MLP_gaze is trained on preferences with gaze annotations to increase the ranking accuracy by 5-10%.

5. The method according to claim 1, characterized in that p_gaze(i) is aggregated by word subtokens and reflects human attention patterns (nouns / verbs: weight 1.2-1.5x higher).

6. The method according to paragraph 1, characterized in that the optimization is carried out with loss = -log π(a|s) × A_gaze + β × KL_divergence, ensuring convergence in 50-100 steps instead of 150-200.