# experience
Research Intern
Laboratoire Bordelais de Recherche en Informatique (LaBRI) - Bordeaux, France
May 2024 - Jul 2024
Built WebWisp, a GPT-4o agent that runs website tests from plain-language tasks, and web-som, the Set-of-Marks script it sees the page through.
Details
- Designed and built WebWisp (github.com/brewcoua/webwisp), a distributed autonomous agent for end-to-end website testing: NestJS orchestrator dispatching tasks via RabbitMQ to scalable Playwright/Chromium workers driven by GPT-4o, with a React client for real-time task monitoring and a MongoDB + GCS persistence layer.
- Authored web-som (github.com/brewcoua/web-som), a Set-of-Marks grounding script using R-tree spatial indexing, Intersection Observer, and per-pixel OffscreenCanvas visibility scoring to annotate interactive DOM elements for multimodal LLMs, powering the agent's Multimodal Chain-of-Thought decision loop.
- Benchmarked on the VisualWebArena dataset, scoring 2–3 points above the then state-of-the-art; collaborated with industry partner Smartesting on web grounding integration; prototype presented at JFTL 2024, the French software testing conference.
Two months in the Progress team (programming, networks and systems) at LaBRI, supervised by Xavier Blanc, then director of the lab. The question: can an agent driven by a multimodal LLM run a website task described in plain language, so end-to-end tests stop breaking every time a button's text or a CSS selector changes? Smartesting, a company building testing tools, followed the work and advised on the grounding side.
The timing helped: GPT-4o, OpenAI's first natively multimodal model, was announced on 13 May 2024, the day I started. A model that could read a screenshot as well as text, quickly and cheaply, made a vision-driven agent practical, and the scope grew from text-only experiments to a full distributed agent with visual grounding.
The agent
WebWisp splits into an orchestrator and a pool of workers. The orchestrator is a NestJS server that publishes tasks to RabbitMQ, consumes the events workers send back, and serves a React client for launching tasks, running datasets and watching runs live. Users and tasks live in MongoDB; traces and screenshots go to a Google Cloud Storage bucket.
Each worker has four parts:
Mind builds the prompt, calls GPT-4o, and parses the action it returns along with its reasoning.
Browser drives Chromium through Playwright: clicks, typing, scrolling, and the screenshot after each action.
Execution runs the cycle (observe, ask the Mind, act), caps the number of cycles, and catches obvious loops and hallucinations such as endless scrolling.
Evaluation scores finished tasks with URL and HTML matchers (include, exclude, and a fuzzy match judged by a second model).
Grounding
Grounding (getting from "click the search button" to one specific element) was the main obstacle. I compared five approaches from the literature: element attributes, ranked textual choices (which needs a pretrained ranker such as DeBERTa ), image annotation, pixel coordinates, and the raw HTML or accessibility tree. I settled on image annotation with Set-of-Marks : every interactive element gets a coloured box and a label on the screenshot, and the model answers with a label.
web-som is the script that draws those marks, injected before each screenshot:
Collect candidates. Elements that are interactive by definition (
button,a, …) come from CSS selectors; elements that are only interactive by style (the cursor changes on hover) come from computed styles.Keep what is visible. An Intersection Observer drops elements outside the viewport. A TreeWalker loads every visible element into an R-tree to find what overlaps each candidate, and stacking order decides what sits on top. Finally each candidate is drawn on an OffscreenCanvas with its covering elements over it, rounded corners and clip paths included, and anything under 60% visible is dropped.
Untangle nesting. For elements that are only interactive by style, a parent and child are kept apart only when they differ by more than 10% in size and position, and a parent with more than three such children is dropped.
Draw the marks. Box colours contrast with their surroundings, within lightness and saturation bounds. Labels are placed so they don't overlap, editable fields get a striped pattern, and the overlay ignores pointer events and uses its own tags so page styles can't leak in.
Prompting
I compared few-shot , Chain-of-Thought , Tree of Thoughts and ReAct prompting, then used Multimodal Chain-of-Thought . Each step, the model gets the list of possible actions (click, type, scroll, select, …), the annotated screenshot, the page URL and title, and its previous actions. It writes out its reasoning before returning one or more valid actions.
Looking back
It was my first research setting after a startup internship the year before, and a useful contrast. A month in, the prototype was shown at JFTL 2024, the French software testing conference, in Paris on 11 June. The VisualWebArena evaluation took longer than planned: the dataset is large and needed a lot of tuning. web-som would also gain from splitting element discovery from rendering. Both projects are open source.
Technologies
Skills
Linked Projects
References
- Brown, T. B., Mann, B., Ryder, N., Subbiah, M., Kaplan, J., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., Agarwal, S., Herbert-Voss, A., Krueger, G., Henighan, T., Child, R., Ramesh, A., Ziegler, D. M., Wu, J., Winter, C., & Amodei, D. (2020). Language models are few-shot learners (arXiv:2005.14165). arXiv. https://doi.org/10.48550/arXiv.2005.14165
- He, P., Liu, X., Gao, J., & Chen, W. (2020). DeBERTa: Decoding-enhanced BERT with disentangled attention (arXiv:2006.03654). arXiv. https://doi.org/10.48550/arXiv.2006.03654
- Koh, J. Y., Lo, R., Jang, L., Duvvur, V., Lim, M. C., Huang, P.-Y., Neubig, G., Zhou, S., Salakhutdinov, R., & Fried, D. (2024). VisualWebArena: Evaluating multimodal agents on realistic visual web tasks (arXiv:2401.13649). arXiv. https://doi.org/10.48550/arXiv.2401.13649
- Wei, J., Wang, X., Schuurmans, D., Bosma, M., Ichter, B., Xia, F., Chi, E., Le, Q., & Zhou, D. (2022). Chain-of-Thought prompting elicits reasoning in large language models (arXiv:2201.11903). arXiv. https://doi.org/10.48550/arXiv.2201.11903
- Yang, J., Zhang, H., Li, F., Zou, X., Li, C., & Gao, J. (2023). Set-of-mark prompting unleashes extraordinary visual grounding in GPT-4V (arXiv:2310.11441). arXiv. https://doi.org/10.48550/arXiv.2310.11441
- Yao, S., Yu, D., Zhao, J., Shafran, I., Griffiths, T. L., Cao, Y., & Narasimhan, K. (2023). Tree of thoughts: Deliberate problem solving with large language models (arXiv:2305.10601). arXiv. https://doi.org/10.48550/arXiv.2305.10601
- Yao, S., Zhao, J., Yu, D., Du, N., Shafran, I., Narasimhan, K., & Cao, Y. (2022). ReAct: Synergizing reasoning and acting in language models (arXiv:2210.03629). arXiv. https://doi.org/10.48550/arXiv.2210.03629
- Zhang, Z., Zhang, A., Li, M., Zhao, H., Karypis, G., & Smola, A. (2023). Multimodal chain-of-thought reasoning in language models (arXiv:2302.00923). arXiv. https://doi.org/10.48550/arXiv.2302.00923