Τεχνικές μηχανικής μάθησης και δέντρων επιθημάτων για πρόβλεψη και σύσταση σελίδων στο Διαδίκτυο

datacite.contributor.RelatedPersonΑριστείδης, Ηλίας
datacite.contributor.RelatedPersonΣιούτας, Σπυρίδων
datacite.contributor.SupervisorΜακρής, Χρήστος
dc.contributor.authorΚανελλόπουλος, Παύλος
dc.contributor.otherKanellopoulos, Pavlos
dc.date.accessioned2026-11-03T06:09:23Z
dc.date.available2026-11-03T06:09:23Z
dc.date.issued2026-10-09
dc.degreegraduateThesis
dc.description.abstractΈνα από τα πιο καίρια και απαιτητικά προβλήματα που κλίνονται να διερευνήσουν και να επιλύσουν οι ερευνητές σήμερα είναι η αυτόνομη πλοήγηση agents σε ιστοσελίδες. Αυτό διότι οι agents βασιζόμενοι σε γλωσσικά μοντέλα καλούνται πλέον να λάβουν αποφάσεις επιλέγοντας την επόμενη σωστή ενέργεια έχοντας ως είσοδο το περιεχόμενο μιας ιστοσελίδας (observation), το οποίο είναι συχνά εκτενές, θορυβώδες και ημιδομημένο. Το LCoW εισήγαγε μια σύγχρονη και ισχυρή μέθοδο προσέγγισης στο πρόβλημα αυτό. Εκπαιδεύοντας ένα εξειδικευμένο module εννοιολογικής πλαισίωσης (contextualization module) επιχειρούν να μετασχηματίσουν το εκάστοτε observation σε μια πιο καθαρή και αξιοποιήσιμη μορφή πριν την λήψη της απόφασης. Στόχος συνεπώς της παρούσα εργασίας είναι να διερευνήσουμε μια εναλλακτική τοποθέτηση της παρέμβασης οπότε αντί να ενισχύσουμε το στάδιο μετασχηματισμού της σελίδας, επεμβαίνουμε στο ίδιο το στάδιο λήψης της απόφασης. Για τον σκοπό αυτό, προτείνουμε έναν υβριδικό μηχανισμό που συνδυάζει ένα μικρό γλωσσικό μοντέλο με μια συμβολική, μη-παραμετρική δομή δεδομένων, ένα Γενικευμένο Δέντρο Επιθημάτων (Generalized Suffix Tree, GST), το οποίο κωδικοποιεί ιστορικά μοτίβα ενεργειών από προηγούμενες πλοηγήσεις τα οποία αξιοποιούνται στη συνέχεια ως μια καθοδήγηση την στιγμή της λήψης της απόφασης. Στην προτεινόμενη αυτή υβριδική αρχιτεκτονική, το GST παρέχει σε κάθε βήμα στατιστικές υποδείξεις (hints) βασισμένες στο ιστορικό, ενώ το γλωσσικό μοντέλο διατηρεί πάντα την τελική ευθύνη της απόφασης. Προσαρμόζουμε την μεθοδολογία fine tuning του LCoW έτσι ώστε: εκπαιδεύουμε το ίδιο μοντέλο απόφασης να αξιοποιεί τις υποδείξεις του GST. Για κάθε βήμα μιας ακολουθίας ενεργειών (trajectory), το GST παράγει πολλαπλά υποψήφια σύνολα hints. Καθένα από αυτά βαθμολογείται με βάση το αν οδηγεί επιτυχώς το μοντέλο στη σωστή ενέργεια και το επικρατέστερο σύνολο διατηρείται για την εκπαίδευση του μοντέλου. Με τον τρόπο αυτόν, το μοντέλο μαθαίνει σταδιακά να αξιοποιεί τα ιστορικά θεμελιωμένα hints κατά τη λήψη της απόφασης. Η πειραματική μελέτη στο περιβάλλον WebShop ανέδειξε μια σειρά ευρημάτων με ευρύτερη σημασία. Πρώτον, οι υποδείξεις του Δέντρου είναι απαραίτητες για το μικρό γλωσσικό μοντέλο: χωρίς αυτές, η ακρίβεια του μη fine-tuned μοντέλου πέφτει από 78,8% σε 21,2%, κυρίως επειδή αδυνατεί να παραγάγει έγκυρη ενέργεια. Δεύτερον, το μη fine-tuned μοντέλο δεν αξιοποιεί αξιόπιστα τις υποδείξεις και η αξιοποίησή τους απαιτεί fine-tuning. Μέσω ελεγχόμενης πειραματικής σύγκρισης και ανάλυσης bootstrap σε επίπεδο trajectory, το fine-tuning βελτιώνει την ακρίβεια κατά +17,8 ποσοστιαίες μονάδες σε επίπεδο βήματος και +19,4 μονάδες σε επίπεδο ολόκληρου trajectory, με iv μείωση των σφαλμάτων κατά περίπου 50%, όταν οι υποδείξεις περιέχουν τη σωστή ενέργεια. Τέλος, αναδεικνύεται πως το Δέντρο Επιθημάτων δεν ανταγωνίζεται το γλωσσικό μοντέλο αλλά το συμπληρώνει, παρέχοντας ορίσματα όπως κωδικούς προϊόντων, που το μοντέλο αδυνατεί να ανακτήσει από μόνο του. Ακόμα, καθοριστικό μέρος της μελέτης υπήρξε η διασφάλιση της εγκυρότητας των αποτελεσμάτων. Κατά τη διερεύνηση εντοπίστηκαν και αντιμετωπίστηκαν τέσσερα ζητήματα που αλλοίωναν τις αρχικές μετρήσεις. Συνεπώς, εντοπίστηκε data leak στο baseline και μια αστοχία στην αντιστοίχιση των hints, τα οποία διορθώθηκαν στην υλοποίηση, καθώς και δύο ζητήματα εγγενή στα δεδομένα του benchmark τα οποία αφορούν την ένωση επαναλαμβανόμενων επεισοδίων του ίδιου task (από τις διαδοχικές επαναλήψεις συλλογής) που προκαλούσε διαρροή εντός συμφραζομένων, αλλά και η χρήση μερικώς αποτυχημένων trajectories ως ετικετών αξιολόγησης. Η αντιμετώπιση όλων με συνεπή, αυστηρή μεθοδολογία (και επαλήθευση της βασικής δομής μέσω εξαντλητικής σύγκρισης) διασφαλίζει ότι τα αναφερόμενα αποτελέσματα είναι έγκυρα, και αναδεικνύει πώς τέτοιες παγίδες αξιολόγησης μπορούν να οδηγήσουν σε φαινομενικά ισχυρά αλλά μη αξιόπιστα ευρήματα. Ακόμα, σημειώνεται ότι το καθαρό σύνολο αξιολόγησης είναι περιορισμένο (n=45 στην κύρια ανάλυση, 113 στην επεκταμένη), συνέπεια της ακριβούς συμβολικής αντιστοίχισης και της απουσίας διαδραστικής εκτέλεσης και γι' αυτό τα ευρήματα της αρχικής εκπαίδευσης παρουσιάζονται ως ενδεικτικά, με ευρέα διαστήματα εμπιστοσύνης, ενώ οι μεγαλύτερες διαφορές του πειράματος ελέγχου της υπόθεσης είναι στατιστικά σημαντικές. Η επεκτεταμένη αξιολόγηση σε 113 σημεία ανέδειξε αρχικά έναν σημαντικό περιορισμό: όταν η σωστή ενέργεια απουσιάζει από τις υποδείξεις (OOD), το fine-tuned μοντέλο αντιγράφει το κορυφαίο hint και πέφτει στο 27,9%, ενώ το μη fine-tuned διαβάζει στόχο και σελίδα και φτάνει το 88,2%. Η ανάλυση εντόπισε την πιθανή αιτία στον τρόπο κατασκευής των δεδομένων εκπαίδευσης: επειδή το Δέντρο περιείχε και τα ίδια τα επεισόδια εκπαίδευσης, η σωστή ενέργεια βρισκόταν πάντα μέσα στις υποδείξεις. Η υπόθεση ελέγχθηκε με προκαταχωρισμένο πείραμα, στο οποίο οι υποδείξεις εκπαίδευσης κατασκευάζονται με αποκλεισμό του ίδιου task (leave-one-task-out). Το νέο μοντέλο φτάνει 92,6% στις καταστάσεις OOD (+64,7 μονάδες, 95% CI [+52,9, +76,5]), αυξάνει το όφελος όταν οι υποδείξεις είναι σωστές (91,1% έναντι 64,4% του μη fine-tuned, 95% CI της διαφοράς [+11,6, +41,9]) και πετυχαίνει 92,0% στο πλήρες σύνολο, την υψηλότερη επίδοση όλων των διαμορφώσεων. Το αποτέλεσμα επιβεβαιώθηκε με τρία διαφορετικά seeds εκπαίδευσης.
dc.description.translatedabstractOne of the most critical and challenging problems that researchers are currently seeking to investigate and solve is the autonomous navigation of agents on websites. This is because agents based on language models are now required to make decisions by selecting the next appropriate action based on the content of a web page (observation), which is often extensive, noisy, and semi-structured. LCoW introduced a modern and powerful approach to this problem. By training a specialized contextualization module, they aim to transform each observation into a clearer and more usable form before a decision is made. The goal of this paper, therefore, is to explore an alternative approach to intervention: rather than enhancing the page transformation stage, we intervene in the decision-making stage itself. To this end, we propose a hybrid mechanism that combines a small language model with a symbolic, non-parametric data structure, a Generalized Suffix Tree (GST), which encodes historical patterns of actions from previous navigations that are then utilized as guidance at the moment of decision-making. In this proposed hybrid architecture, the GST provides history-based statistical hints at each step, while the language model always retains ultimate responsibility for the decision. We adapt the LCoW fine-tuning methodology so that we train the same decision model to utilize the GST’s hints. For each step of a trajectory, the GST generates multiple candidate sets of hints. Each of these is scored based on whether it successfully guides the model to the correct action, and the most promising set is retained for model training. In this way, the model gradually learns to utilize historically grounded hints when making decisions. Our experimental study in the WebShop environment revealed a series of findings with broader implications. First, the tree's hints are essential for the small language model: without them, the accuracy of the non-fine-tuned model drops from 78.8% to 21.2%, mainly because it fails to produce a valid action. Second, the non-fine-tuned model does not use the hints reliably, and using them requires fine-tuning. Through a controlled comparison and trajectory-level bootstrap analysis, fine-tuning improves accuracy by +17.8 percentage points at the step level and +19.4 percentage points at the trajectory level, with roughly half the errors, when the hints contain the correct action. Finally, the Suffix Tree does not compete with the language model but complements it, providing arguments such as product codes that the model cannot retrieve on its own. Furthermore, ensuring the validity of the results was a crucial part of the study. During the investigation, four issues that distorted the initial measurements were identified and addressed. Consequently, a data leak was detected in the baseline and a failure in the matching of hints, both of which were corrected in the implementation, as well as two issues inherent in the benchmark data concerning the merging of repeated instances of the same task (from successive collection iterations) that caused in-context leakage, as vi well as the use of partially failed trajectories as evaluation labels. Addressing all of these with a consistent, rigorous methodology (and verification of the underlying structure through exhaustive comparison) ensures that the reported results are valid, and highlights how such evaluation pitfalls can lead to seemingly robust but unreliable findings. The clean evaluation set is limited (n=45 in the main analysis, 113 in the extended one), a consequence of exact symbolic matching and the absence of interactive execution. The findings of the original training are therefore presented as indicative, with wide confidence intervals, while the larger differences of the hypothesis-testing experiment are statistically significant. The extended 113-point evaluation first revealed a significant limitation: when the correct action is absent from the hints (OOD), the fine-tuned model copies the top hint and drops to 27.9%, while the non-fine-tuned model reads the goal and the page and reaches 88.2%. The analysis traced the likely cause to how the training data were built: because the tree also contained the training episodes themselves, the correct action was always among the hints. We tested this hypothesis with a pre-registered experiment in which training hints are retrieved with the example's own task excluded (leave-one-task-out). The new model reaches 92.6% on the OOD points (+64.7 points, 95% CI [+52.9, +76.5]), increases the gain when the hints are correct (91.1% vs 64.4% for the non-fine-tuned model, 95% CI of the difference [+11.6, +41.9]) and achieves 92.0% on the full set, the highest of all configurations. The result held across three training seeds.
dc.identifier.urihttps://hdl.handle.net/10889/33346
dc.language.isoel
dc.subjectΓενικευμένα δέντρα επιθημάτων
dc.subjectΜεγάλα γλωσσικά μοντέλα
dc.subjectΠράκτορες πλοήγησης στον Ιστό
dc.subject.alternativeGeneralized suffix trees
dc.subject.alternativeLarge language models (LLMs)
dc.subject.alternativeWeb navigation agents
dc.titleΤεχνικές μηχανικής μάθησης και δέντρων επιθημάτων για πρόβλεψη και σύσταση σελίδων στο Διαδίκτυο
dc.title.alternativeMachine learning and suffix tree techniques for web page prediction and recommendation

Files

Original bundle
Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
Διπλωματική Κανελλόπουλος Παύλος 1084575.pdf
Size:
1.75 MB
Format:
Adobe Portable Document Format
License bundle
Now showing 1 - 1 of 1
No Thumbnail Available
Name:
license.txt
Size:
5.02 KB
Format:
Item-specific license agreed upon to submission
Description: