Skip to content

Commit c6b637f

Browse files
author
MarceloClaro
committed
fix(publicacao): enquadrar texto, tabelas, figuras e equacoes no PDF de submissao (2 colunas)
- Figura: usar \columnwidth (e nao \textwidth, que em twocolumn e a largura da pagina inteira) — corrige a sobreposicao da figura com a coluna adjacente. - Equacoes largas reformuladas para caber na coluna de 229pt: * eq:mu com \mathclap no numerador; eq:lambda e eq:habdscore com subscritos compactos/\mathclap; hipoteses H2/H3 (metodologia) e vereditos H2/H3 (resultados) reescritos em aligned multilinha. - Tabelas: cabecalhos encurtados (Div, g, cob., Delta g), \small e legenda; captions sem tokens longos \texttt nao quebraveis. - Consistencia de notacao: \lambda_{base} -> \lambda_B em todo o documento. - main.tex: path longo de reprodutibilidade com \allowbreak. Resultado: 0 overfulls no PDF de submissao (9 pags) e no de leitura (14 pags).
1 parent 7fd895d commit c6b637f

5 files changed

Lines changed: 56 additions & 34 deletions

File tree

publications/r459_article/main.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
\usepackage[brazil]{babel}
1212
\usepackage[margin=2.5cm]{geometry}
1313
\usepackage{amsmath,amssymb}
14+
\usepackage{mathtools}
1415
\usepackage{booktabs}
1516
\usepackage{graphicx}
1617
\usepackage{xcolor}
@@ -152,7 +153,7 @@ \section*{Apêndice A — Arquivos e reprodutibilidade}
152153
\item \emph{Benchmark} de coorte: \texttt{benchmarks/cohort\_recaman.py}
153154
(estratégias \texttt{atual}, \texttt{mmr}, \texttt{recaman},
154155
\texttt{habd}) e relatório \texttt{benchmarks/cohort\_report.json}.
155-
Figura: \texttt{publications/r459\_article/make\_figures.py}.
156+
Figura: \texttt{publications/}r459\_article\allowbreak/\texttt{make\_figures.py}.
156157
\item Especificações: \texttt{SPEC-935-R457}, \texttt{SPEC-935-R458},
157158
\texttt{SPEC-935-R460}.
158159
\item Manual técnico: \texttt{docs/r456\_manual\_tecnico\_rag/}.

publications/r459_article/sections/03_metodologia.tex

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ \subsubsection{A sequência de Recamán}
1313
$a_0 = 0$ e, para $n\ge 1$,
1414
\[
1515
a_n \;=\; \begin{cases}
16-
a_{n-1} - n, & \text{se } a_{n-1}-n > 0 \text{ e valor não visitado},\\
17-
a_{n-1} + n, & \text{caso contrário}.
16+
a_{n-1} - n, & \text{se } a_{n-1}-n > 0 \text{ e n\~ao visitado},\\
17+
a_{n-1} + n, & \text{caso contr\'ario}.
1818
\end{cases}
1919
\]
2020
Os primeiros termos são $0,1,3,6,2,7,13,20,12,21$.\footnote{Nota metodológica:
@@ -93,7 +93,7 @@ \subsubsection{Índice de mistura de âncoras ($\mu$)}
9393
\[
9494
\label{eq:mu}
9595
\mu(q) \;=\; \frac{
96-
\bigl|\{ \text{âncoras distintas nos } W \text{ primeiros de } R\}\bigr|
96+
\mathclap{\bigl|\{ \text{\"ancoras distintas em } R[1..W] \}\bigr|}
9797
}{
9898
\min(W, |R|)
9999
} ,
@@ -110,10 +110,12 @@ \subsubsection{$\lambda$ adaptativo determinístico}
110110
forma monotônica:
111111
\[
112112
\label{eq:lambda}
113-
\lambda_{\mathrm{HABD}}(q) \;=\; \lambda_{\min} + \mu(q)\,
114-
\bigl(\lambda_{\mathrm{base}} - \lambda_{\min}\bigr) ,
113+
\lambda_{\mathrm H}(q) \;=\; \lambda_{\min} + \mu(q)
114+
\left(\lambda_{\mathrm B} - \lambda_{\min}\right),
115115
\]
116-
com $\lambda_{\min}=0{,}3$ e $\lambda_{\mathrm{base}}=0{,}7$. Quando $\mu\to 0$
116+
com $\lambda_{\min}=0{,}3$ e $\lambda_{\mathrm B}=0{,}7$
117+
($\mathrm H$ abrevia \emph{HABD} e $\mathrm B$, \emph{base}).
118+
Quando $\mu\to 0$
117119
(monopolista), $\lambda\to 0{,}3$ — a seleção passa a favorecer \emph{diversidade}
118120
(penaliza fortemente âncoras repetidas). Quando $\mu\to 1$ (misto), $\lambda\to
119121
0{,}7$ — privilegia-se \emph{relevância}, pois a diversidade já está
@@ -127,7 +129,7 @@ \subsubsection{Seleção MMR anchor-blended}
127129
\[
128130
\label{eq:habdscore}
129131
\mathrm{score}(d) \;=\; \lambda\,\mathrm{relev}(d) \;-\; (1-\lambda)\,
130-
\underbrace{\max_{d_j\in S}\, \Sim_{\mathrm{anchor}}(d,d_j)}_{\text{0 se }d\text{ tem âncora nova}} ,
132+
\underbrace{\max_{d_j\in S}\, \Sim_{\mathrm{anchor}}(d,d_j)}_{\mathclap{\text{0 se }d\text{ tem âncora nova}}} ,
131133
\]
132134
onde $\Sim_{\mathrm{anchor}}(d,d_j)=1$ se $d$ e $d_j$ têm a \emph{mesma âncora} e
133135
$0$ caso contrário. A top-1 do ranking é sempre mantida. O efeito é duplo: (i)
@@ -169,7 +171,7 @@ \subsection{Protocolo de coorte}
169171
sobre o ranking ordenado.
170172
\item \textbf{HABD:} o diversificador \emph{anchor-blended} determinístico com
171173
$\lambda$ adaptativo (Seção do HABD), com $\lambda_{\min}=0{,}3$ e
172-
$\lambda_{\mathrm{base}}=0{,}7$.
174+
$\lambda_{\mathrm B}=0{,}7$.
173175
\end{enumerate}
174176

175177
As métricas avaliadas por seleção são: diversidade $\Div(\mathcal{S})$ (Eq.
@@ -200,20 +202,26 @@ \subsection{Cuidados de validade}
200202

201203
\subsection{Hipóteses}
202204

203-
Formalizamos as hipóteses a testar. Para o esquema posicional de Recamán:
205+
Formalizamos as hipóteses a testar, usando subscritos $t$ (top-$k$),
206+
$r$ (Recamán), $m$ (MMR) e $h$ (HABD) para abreviar $g$ e $\Div$. Para o esquema
207+
posicional de Recamán:
204208
\[
205-
\textbf{H2:}\quad \Div(S_{\text{Recamán}}) > \Div(S_{\text{top-k}})
206-
\;\wedge\; \frac{g_{\text{top-k}} - g_{\text{Recamán}}}{g_{\text{top-k}}} \le 0{,}05,
209+
\begin{aligned}
210+
\textbf{H2:}\quad & \Div(S_r) > \Div(S_t)
211+
\;\wedge\; \tfrac{g_t - g_r}{g_t} \le 0{,}05,
212+
\end{aligned}
207213
\]
208214
onde $g$ denota \emph{groundedness} médio. A segunda condição garante que o
209215
ganho de diversidade, se houver, não degrada relevância além de uma tolerância de
210216
$5\%$.
211217

212218
Para o diversificador híbrido HABD:
213219
\[
214-
\textbf{H3:}\quad \bigl[\Div(S_{\text{HABD}}) > 0{,}5\bigr]
215-
\;\wedge\; \bigl[\Div(S_{\text{HABD}}) \ge \Div(S_{\text{MMR}})\bigr]
216-
\;\wedge\; \frac{g_{\text{top-k}} - g_{\text{HABD}}}{g_{\text{top-k}}} \le 0{,}05,
220+
\begin{aligned}
221+
\textbf{H3:}\quad & \bigl[\Div(S_h) > 0{,}5\bigr]
222+
\;\wedge\; \bigl[\Div(S_h) \ge \Div(S_m)\bigr]\\[-1pt]
223+
&\qquad \wedge\; \tfrac{g_t - g_h}{g_t} \le 0{,}05,
224+
\end{aligned}
217225
\]
218226
em que a primeira condição exige superar o \emph{empate} top-k/Recamán, a segunda
219227
exige não ficar atrás do MMR em diversidade, e a terceira impõe a mesma tolerância

publications/r459_article/sections/04_resultados.tex

Lines changed: 30 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,35 +14,41 @@ \section{Resultados}
1414
\subsection{Resultados agregados por estratégia}
1515

1616
A Tabela~\ref{tab:resumo} apresenta as médias das métricas por estratégia ao longo
17-
das 4 queries. O HABD usa $\lambda_{\min}=0{,}3$, $\lambda_{\mathrm{base}}=0{,}7$;
17+
das 4 queries. O HABD usa $\lambda_{\min}=0{,}3$, $\lambda_{\mathrm B}=0{,}7$;
1818
o $\lambda$ médio efetivo observado foi $0{,}4333$ — confirmando a rotação para
1919
diversidade (o ranking é localmente monopolista, $\mu$ baixo).
2020

2121
\begin{table}[ht]
2222
\centering
2323
\caption{Resultados agregados do coorte (médias sobre $n\_queries=4$, $K=4$).
24-
Valores reais do \texttt{cohort\_report.json}.}
24+
Valores reais extraídos do relatório do \emph{benchmark} (\texttt{cohort\_report}).}
2525
\label{tab:resumo}
26+
\small
2627
\begin{tabular}{lcccc}
2728
\toprule
28-
\textbf{Estratégia} & $\Div(\mathcal{S})$ & \emph{groundedness} & \emph{cobertura} & $\Delta g$ \\
29+
\textbf{Estratégia} & $\Div$ & \emph{g} & \emph{cob.} & $\Delta g$ \\
2930
\midrule
30-
\emph{top-k} (atual) & 0.500 & 0.4561 & 0.667 & --- \\
31-
Recamán & 0.500 & 0.4561 & 0.667 & 0.0\% \\
32-
MMR ($\lambda=0.7$) & 0.750 & 0.4256 & 0.917 & $-6{,}7\%$ \\
33-
\textbf{HABD} & \textbf{0.8333} & 0.4087 & \textbf{1.000} & $-10{,}4\%$ \\
31+
\emph{top-k} & 0.500 & 0.4561 & 0.667 & --- \\
32+
Recamán & 0.500 & 0.4561 & 0.667 & 0.0\% \\
33+
MMR, $\lambda{=}0.7$ & 0.750 & 0.4256 & 0.917 & $-6{,}7\%$ \\
34+
\textbf{HABD} & \textbf{0.8333} & 0.4087 & \textbf{1.000} & $-10{,}4\%$ \\
3435
\bottomrule
3536
\end{tabular}
37+
\caption*{\footnotesize \emph{g}: groundedness; \emph{cob.}: cobertura.}
3638
\end{table}
3739

3840
Os resultados revelam quatro fatos:
3941

4042
\begin{figure}[ht]
4143
\centering
42-
\includegraphics[width=0.88\textwidth]{figures/cohort_results.png}
44+
% NOTA: usar \columnwidth (e não \textwidth) — em documento twocolumn,
45+
% \textwidth é a largura DA PÁGINA INTEIRA e faria a figura transbordar a
46+
% coluna e sobrepor-se à coluna adjacente. \columnwidth resolve em ambos
47+
% os layouts (uma coluna: \columnwidth == \textwidth).
48+
\includegraphics[width=0.9\columnwidth]{figures/cohort_results.png}
4349
\caption{Comparação das quatro estratégias sob diversidade, relevância e cobertura
44-
(corpus-piloto controlado, médias sobre 4 queries). Valores iguais aos do
45-
\texttt{cohort\_report.json}.}
50+
(corpus-piloto controlado, médias sobre 4 queries). Valores iguais aos reportados
51+
no \emph{benchmark}.}
4652
\label{fig:cohort}
4753
\end{figure}
4854

@@ -81,7 +87,7 @@ \subsection{Comportamento por query}
8187
\begin{table}[ht]
8288
\centering
8389
\caption{Diversidade $\Div(\mathcal{S})$ por query.
84-
Valores reais do \texttt{cohort\_report.json}.}
90+
Valores reais extraídos do relatório do \emph{benchmark}.}
8591
\label{tab:porquery}
8692
\begin{tabular}{lcccc}
8793
\toprule
@@ -99,21 +105,27 @@ \subsection{Veredito das hipóteses}
99105

100106
Com base nos critérios definidos na Seção~\ref{sec:metodo}:
101107
\[
102-
\underbrace{\Delta\Div(\text{Recamán}) = 0{,}0}_{\text{não estritamente }>0}
103-
\;\Rightarrow\; \textbf{H2 refutada}
108+
\begin{aligned}
109+
&\Delta\Div(\text{Recam\'an}) = 0{,}0
110+
&& \mathrlap{\text{(n\~ao estritamente $>0$)}}\\
111+
&\Rightarrow\; \textbf{H2 refutada}
112+
\end{aligned}
104113
\]
105114
Registramos, portanto, o veredito \texttt{refuta\_H2}: no corpus-piloto, a
106115
seleção posicional por Recamán \emph{não demonstra} ganho estrito de diversidade
107116
sobre o \emph{top-k}, enquanto o MMR demonstra ganho em 3 das 4 queries.
108117

109118
Para o HABD, ainda que a \emph{diversidade} e a \emph{cobertura} sejam as maiores
110119
do coorte (0{,}8333 e 1{,}000), a queda relativa de relevância
111-
($10{,}4\%$) \textbf{excede} a tolerância de $5\%$:
120+
($10{,}4\%$) \textbf{excede} a tolerância de $5\%$. Formalmente:
112121
\[
113-
\underbrace{\Delta\Div(\text{HABD}) > 0{,}5 \;\wedge\; \Div(\text{HABD})\ge\Div(\text{MMR})}_{\text{verdadeiro (factual) }}
114-
\;\wedge\;
115-
\underbrace{\frac{\Delta g}{g} = 0{,}104}_{> 0{,}05 \;\Rightarrow\; \textbf{condição violada}}
116-
\;\Rightarrow\; \textbf{H3 refutada}
122+
\begin{aligned}
123+
\Delta\Div(\text{HABD}) &> 0{,}5\\[-2pt]
124+
\Div(\text{HABD}) &\ge \Div(\text{MMR}) &&\mathrlap{\text{(factual)}}\\[2pt]
125+
\tfrac{\Delta g}{g} &= 0{,}104 > 0{,}05
126+
&&\mathrlap{\Rightarrow \textbf{cond. violada}}\\[2pt]
127+
&\Rightarrow \textbf{H3 refutada}
128+
\end{aligned}
117129
\]
118130
Registramos \texttt{refuta\_H3}: o HABD \emph{supera} MMR e Recamán em diversidade
119131
e cobertura, mas \emph{não satisfaz} o critério rígido de relevância. As duas

publications/r459_article/sections/05_discussao.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ \subsection{Limitações do estudo}
107107
\item \textbf{Conjunto de queries pequeno} ($n=4$): os agregados têm caráter
108108
ilustrativo; um experimento com dezenas/centenas de queries e múltiplas
109109
sementes é necessário para inferência estatística.
110-
\item \textbf{$\lambda_{\min}$/$\lambda_{\mathrm{base}}$ escolhidos por
110+
\item \textbf{$\lambda_{\min}$/$\lambda_{\mathrm B}$ escolhidos por
111111
convenção} ($0{,}3$/$0{,}7$); a sensibilidade a esses valores e ao tamanho
112112
da janela $W$ do índice de mistura $\mu$ não foi explorada aqui.
113113
\item \textbf{Heurística sem feedback de qualidade:} o HABD não usa LLM-judge

publications/r459_article/submission/submission.tex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
\usepackage[brazil]{babel}
1515
\usepackage[margin=2.2cm]{geometry}
1616
\usepackage{amsmath,amssymb}
17+
\usepackage{mathtools}
1718
\usepackage{booktabs}
1819
\usepackage{graphicx}
1920
\usepackage{xcolor}

0 commit comments

Comments
 (0)