{"id":2573,"date":"2026-09-24T14:53:50","date_gmt":"2026-09-24T14:53:50","guid":{"rendered":"https:\/\/prlalmeida.com.br\/dsbd\/?page_id=2573"},"modified":"2026-09-25T12:08:25","modified_gmt":"2026-09-25T12:08:25","slug":"otimizacao-treino","status":"publish","type":"page","link":"https:\/\/prlalmeida.com.br\/dsbd\/pt\/otimizacao-treino\/","title":{"rendered":"OtimizacaoTreino"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"2573\" class=\"elementor elementor-2573\">\n\t\t\t\t<div class=\"elementor-element elementor-element-0a6e967 e-con-full e-flex e-con e-parent\" data-id=\"0a6e967\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-ee59a96 elementor-invisible elementor-widget elementor-widget-heading\" data-id=\"ee59a96\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;_animation&quot;:&quot;fadeInDown&quot;}\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h1 class=\"elementor-heading-title elementor-size-default\">otimiza\u00e7\u00f5es no treinamento em modelos de metric learning<\/h1>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-29f63bf e-con-full e-flex e-con e-parent\" data-id=\"29f63bf\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t<div class=\"elementor-element elementor-element-108c8e3 e-flex e-con-boxed e-con e-child\" data-id=\"108c8e3\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-e6c1034 elementor-widget elementor-widget-heading\" data-id=\"e6c1034\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;_animation&quot;:&quot;none&quot;}\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Pesquisadores<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-775f886 e-grid e-con-full e-con e-child\" data-id=\"775f886\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-b9ecf2b elementor-position-top elementor-widget elementor-widget-image-box\" data-id=\"b9ecf2b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image-box.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-image-box-wrapper\"><figure class=\"elementor-image-box-img\"><img fetchpriority=\"high\" decoding=\"async\" width=\"460\" height=\"460\" src=\"https:\/\/prlalmeida.com.br\/dsbd\/wp-content\/uploads\/2023\/10\/paulo.jpeg\" class=\"attachment-full size-full wp-image-183\" alt=\"\" srcset=\"https:\/\/prlalmeida.com.br\/dsbd\/wp-content\/uploads\/2023\/10\/paulo.jpeg 460w, https:\/\/prlalmeida.com.br\/dsbd\/wp-content\/uploads\/2023\/10\/paulo-300x300.jpeg 300w, https:\/\/prlalmeida.com.br\/dsbd\/wp-content\/uploads\/2023\/10\/paulo-150x150.jpeg 150w\" sizes=\"(max-width: 460px) 100vw, 460px\" \/><\/figure><div class=\"elementor-image-box-content\"><h3 class=\"elementor-image-box-title\">Paulo R. Lisboa de Almeida<\/h3><p class=\"elementor-image-box-description\">UFPR<\/p><\/div><\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7354c96 elementor-position-top elementor-widget elementor-widget-image-box\" data-id=\"7354c96\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image-box.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-image-box-wrapper\"><figure class=\"elementor-image-box-img\"><img decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/prlalmeida.com.br\/dsbd\/wp-content\/uploads\/2026\/08\/gregio-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail wp-image-2543\" alt=\"\" \/><\/figure><div class=\"elementor-image-box-content\"><h3 class=\"elementor-image-box-title\"> Andr\u00e9 Gr\u00e9gio<\/h3><p class=\"elementor-image-box-description\">UFPR<\/p><\/div><\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4e572da elementor-position-top elementor-widget elementor-widget-image-box\" data-id=\"4e572da\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image-box.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-image-box-wrapper\"><figure class=\"elementor-image-box-img\"><img decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/prlalmeida.com.br\/dsbd\/wp-content\/uploads\/2025\/09\/roberto-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail wp-image-2244\" alt=\"\" \/><\/figure><div class=\"elementor-image-box-content\"><h3 class=\"elementor-image-box-title\"> Roberto Tomchak<\/h3><p class=\"elementor-image-box-description\">UFPR<\/p><\/div><\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7256577 elementor-position-top elementor-widget elementor-widget-image-box\" data-id=\"7256577\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image-box.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-image-box-wrapper\"><figure class=\"elementor-image-box-img\"><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/prlalmeida.com.br\/dsbd\/wp-content\/uploads\/2026\/09\/heloisaViotto-e1790262908269-150x150.jpeg\" class=\"attachment-thumbnail size-thumbnail wp-image-2579\" alt=\"\" \/><\/figure><div class=\"elementor-image-box-content\"><h3 class=\"elementor-image-box-title\">Helo\u00edsa Viotto<\/h3><p class=\"elementor-image-box-description\">UFPR<\/p><\/div><\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-39e2fe2 elementor-position-top elementor-widget elementor-widget-image-box\" data-id=\"39e2fe2\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image-box.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-image-box-wrapper\"><figure class=\"elementor-image-box-img\"><img loading=\"lazy\" decoding=\"async\" width=\"970\" height=\"970\" src=\"https:\/\/prlalmeida.com.br\/dsbd\/wp-content\/uploads\/2026\/09\/caueSamonek.jpeg\" class=\"attachment-full size-full wp-image-2574\" alt=\"\" srcset=\"https:\/\/prlalmeida.com.br\/dsbd\/wp-content\/uploads\/2026\/09\/caueSamonek.jpeg 970w, https:\/\/prlalmeida.com.br\/dsbd\/wp-content\/uploads\/2026\/09\/caueSamonek-300x300.jpeg 300w, https:\/\/prlalmeida.com.br\/dsbd\/wp-content\/uploads\/2026\/09\/caueSamonek-150x150.jpeg 150w, https:\/\/prlalmeida.com.br\/dsbd\/wp-content\/uploads\/2026\/09\/caueSamonek-768x768.jpeg 768w\" sizes=\"(max-width: 970px) 100vw, 970px\" \/><\/figure><div class=\"elementor-image-box-content\"><h3 class=\"elementor-image-box-title\">Cau\u00ea Samonek<\/h3><p class=\"elementor-image-box-description\">UFPR<\/p><\/div><\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d44c4f7 elementor-position-top elementor-widget elementor-widget-image-box\" data-id=\"d44c4f7\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image-box.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-image-box-wrapper\"><figure class=\"elementor-image-box-img\"><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"720\" src=\"https:\/\/prlalmeida.com.br\/dsbd\/wp-content\/uploads\/2025\/10\/thamiris.jpeg\" class=\"attachment-full size-full wp-image-2262\" alt=\"\" srcset=\"https:\/\/prlalmeida.com.br\/dsbd\/wp-content\/uploads\/2025\/10\/thamiris.jpeg 720w, https:\/\/prlalmeida.com.br\/dsbd\/wp-content\/uploads\/2025\/10\/thamiris-300x300.jpeg 300w, https:\/\/prlalmeida.com.br\/dsbd\/wp-content\/uploads\/2025\/10\/thamiris-150x150.jpeg 150w\" sizes=\"(max-width: 720px) 100vw, 720px\" \/><\/figure><div class=\"elementor-image-box-content\"><h3 class=\"elementor-image-box-title\">Thamiris Yamate Fischer<\/h3><p class=\"elementor-image-box-description\">UFPR<\/p><\/div><\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-c526adc e-con-full e-flex e-con e-parent\" data-id=\"c526adc\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t<div class=\"elementor-element elementor-element-5c5f667 e-flex e-con-boxed e-con e-child\" data-id=\"5c5f667\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-79d2fdf elementor-widget elementor-widget-heading\" data-id=\"79d2fdf\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Maintaining Difficulty: A Margin Scheduler for Triplet Loss in Siamese Networks Training<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d646258 elementor-widget elementor-widget-text-editor\" data-id=\"d646258\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Esse estudo exp\u00f5e que, durante o treinamento de Redes Siamesas que utilizam o Triplet Margin Ranking Loss, a margem efetiva comumente \u00e9 superior \u00e0quela pr\u00e9 definida como hiperpar\u00e2metro, assim podendo limitar o aprendizado. O artigo, ent\u00e3o, sugere adaptar esse valor durante o treinamento, por\u00e9m, diferentemente de abordagens anteriores, as quais focam em cen\u00e1rios espec\u00edfico, os autores prop\u00f5em ajustar a margem conforme a propor\u00e7\u00e3o de triplets f\u00e1ceis.<\/p><p>Nos experimentos, conduzidos nos datasets LFW, CelebA, CUB-200-2011 e Stanford Cars, foram comparados a efic\u00e1cia de uma margem fixa m = 0.3, do m\u00e9todo Linear Scheduler proposto, o qual inicia com uma margem m0 = 0.0 com taxa de crescimento a cada \u00e9poca de sl = 0.01 e o m\u00e9todo Difficulty Adaptative Margin Scheduler (DAMS) que tamb\u00e9m come\u00e7a com uma margem iniciam m0 = 0.0, mas com taxa de crescimento sa = 0.01 a toda \u00e9poca que a taxa de triplets f\u00e1ceis for maior que um threshold t = 0.95. Esses hiperpar\u00e2metros foram definidos com base em testes exaustivos com v\u00e1rias configura\u00e7\u00f5es.<\/p><p>Os resultados apontam que o DAMS \u00e9 o m\u00e9todo mais adequado na maioria dos cen\u00e1rios, pois o crescimento da sua margem pode estagnar em algum ponto do treinamento, o oposto do m\u00e9todo linear que pode ser mais agressivo e da margem fixa que n\u00e3o se adapta ao problema.<\/p><p>Esse trabalho intitulado &#8220;<a href=\"https:\/\/arxiv.org\/pdf\/2603.26389\"><span style=\"color: #99ccff;\"><strong><span style=\"text-decoration: underline;\">Maintaining Difficulty: A Margin Scheduler for Triplet Loss in Siamese Network Training<\/span><\/strong><\/span><\/a>&#8221; foi apresentado na IJCNN 2026.<\/p><p><!-- notionvc: b8eb3f60-45a3-488a-a544-810c1770e11d --><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-f0659d1 e-con-full e-flex e-con e-child\" data-id=\"f0659d1\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t<div class=\"elementor-element elementor-element-de248e3 e-flex e-con-boxed e-con e-child\" data-id=\"de248e3\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-a312583 elementor-widget elementor-widget-heading\" data-id=\"a312583\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;_animation&quot;:&quot;none&quot;}\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">How Far is Too Far? Defining the Distance\nThreshold for Verification Siamese Networks.<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-dfe4803 elementor-widget elementor-widget-text-editor\" data-id=\"dfe4803\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Em Redes Siamesas, dois objetos s\u00e3o considerados da mesma classe se a dist\u00e2ncia entre eles est\u00e1 abaixo de um threshold pr\u00e9-definido. O artigo prop\u00f5e ent\u00e3o descobrir o threshold (t) de cada problema ao assumir que a distribui\u00e7\u00e3o das dist\u00e2ncias podem ser aproximadas por uma fun\u00e7\u00e3o bimodal, nesse cen\u00e1rio t \u00e9 o ponto m\u00ednimo entre duas modas: pares positivos nas dist\u00e2ncias menores e pares negativos nas maiores. Ao contr\u00e1rio de outros m\u00e9todos, como selecionar esse hiperpar\u00e2metro a partir da analise da curva ROC, o sugerido pelo estudo n\u00e3o necessita de dados previamente rotulados e n\u00e3o sofre da mudan\u00e7a de distribui\u00e7\u00e3o entre dados de treino, valida\u00e7\u00e3o e teste, al\u00e9m disso, a t\u00e9cnica proposta possui bom desempenho em dados desbalanceados.<\/p><p>Os dois algoritmos apresentados s\u00e3o o BimodalVal, o qual estima o threshold apenas usando o conjunto de dados de valida\u00e7\u00e3o, e o BimodalUpd, cujo t \u00e9 inicializado conforme os dados de valida\u00e7\u00e3o, mas a cada 64 novas dist\u00e2ncias observadas no teste o hiperpar\u00e2metro pode se adaptar. Nos experimentos, esses dois algoritmos foram comparados com utilizar um threshold fixo e com o m\u00e9todo Equal Error Rate (EER) nos datasets MNIST, CIFAR10, PKLot e LFW. Os resultados mostram que os algoritmos propostos e o EER tem acur\u00e1cias semelhantes e significamente melhores do que apenas utilizar um threshold fixo.<\/p><p>Esse trabalho intitulado <strong><span style=\"color: #99ccff;\"><a style=\"color: #99ccff;\" href=\"https:\/\/arxiv.org\/pdf\/2607.05329\">\u201cHow Far is Too Far? Defining the Distance Threshold for Verification Siamese Networks\u201d<\/a><\/span><\/strong> foi apresentado na SMC 2026.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>otimiza\u00e7\u00f5es no treinamento em modelos de metric learning Pesquisadores Paulo R. Lisboa de Almeida UFPR Andr\u00e9 Gr\u00e9gio UFPR Roberto Tomchak [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"no-sidebar","site-content-layout":"","ast-site-content-layout":"full-width-container","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"disabled","ast-breadcrumbs-content":"","ast-featured-img":"disabled","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-2573","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/prlalmeida.com.br\/dsbd\/wp-json\/wp\/v2\/pages\/2573","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prlalmeida.com.br\/dsbd\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/prlalmeida.com.br\/dsbd\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/prlalmeida.com.br\/dsbd\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prlalmeida.com.br\/dsbd\/wp-json\/wp\/v2\/comments?post=2573"}],"version-history":[{"count":11,"href":"https:\/\/prlalmeida.com.br\/dsbd\/wp-json\/wp\/v2\/pages\/2573\/revisions"}],"predecessor-version":[{"id":2612,"href":"https:\/\/prlalmeida.com.br\/dsbd\/wp-json\/wp\/v2\/pages\/2573\/revisions\/2612"}],"wp:attachment":[{"href":"https:\/\/prlalmeida.com.br\/dsbd\/wp-json\/wp\/v2\/media?parent=2573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}