


\begin{table*}[t]

\begin{center}
    \caption{OOD performances of models trained using  ERM, ERM+DA, and LAM. The OOD performance of a model is 
        assessed on held-out test domain(s) using 
        Macro F1 score on iWildCam and
        classification accuracy on all the other datasets. Each model is trained three times, with the standard deviation reported. \textbf{Bold} font indicates the best results.
        %The best result is in \textbf{bold}.  Arrows indicate changes relative to {ERM+DA}.
        } %The {\em Count $\downarrow$} represents the number of datasets on which the CR-based DG method is {\it worse} than ERM+DA.}
        \label{tab:main}
% and second best is \underline{underlined}. Arrows indicate changes relative to {ERM+DA}. The {\em Count $\downarrow$} represents the number of datasets on which the CR-based DG method is {worse} than ERM+DA: a {lower} count indicates better performance relative to ERM+DA.} %The rank is decided by summing the individual dataset rankings for each method and then ranking the total scores  (lower rank is better). }
%\vspace{-0.05cm}
\adjustbox{max width=\textwidth}{
\begin{tabular}{llcccccc}%|c}
\toprule

&&{\textbf{ImageNet-9}} & {\textbf{NICO}}  &{\textbf{PACS}} & {\textbf{iWildCam}} & {\textbf{Camelyon}}& \textbf{{Average}}\\%& \textbf{{Count $\downarrow$}} \\
&& \scriptsize{(CLIP ViT-B/16)} & \scriptsize{(CLIP ViT-B/16)} &\scriptsize{(CLIP ResNet-50)}& \scriptsize{(ImageNet ResNet-50)} &\scriptsize{(DenseNet-121)} \\

\midrule
&{ERM}  &{{83.3{$\pm$1.1}}} &{{95.3{$\pm$0.1}}} &{{82.8{$\pm$0.5}}}&{{30.2{$\pm$0.3}}}&{{65.2{$\pm$2.6}}} 
& {71.4}
\\%&{----}\\


\midrule

{RandAugment} &{ERM+DA} &{{85.3{$\pm$0.2}}}&{{96.0{$\pm$0.2}}}&{{83.3{$\pm$0.3}}}&{{33.8{$\pm$0.4}}}& {{84.3{$\pm$2.3}}}& {{76.6}}\\%&{----}\\

& {LAM}&{{{{85.6}{{$\pm$0.2}}}} }&{{{96.1}{$\pm$0.1}} }&{{{83.8}{{$\pm$0.4}}} }&{{36.4{$\pm$}0.2} }&{{{89.0{$\pm$}1.9}} }&
{{78.2}}\\% &{0}\\


\midrule


{Targeted DA} &{ERM+DA} &{{86.0{$\pm$1.0}}}&{{{95.9{$\pm$0.3}}}}&{{84.5{$\pm$0.5}}}&{{{36.5{$\pm$0.4}}}} & {{90.5{$\pm$0.9}}}&{78.7}\\%&{----}\\

& {LAM} & {{{\textbf{88.1}{\textbf{$\pm$0.2}}}}} &{{{\textbf{96.5}{\textbf{$\pm$0.3}}}}} &  {{{\textbf{86.0}{\textbf{$\pm$0.3}}}}}  &{{{\textbf{41.2}{\textbf{$\pm$0.2}}}}}  &{{\textbf{93.5}{$\pm$\textbf{1.8}}}}  &
{\textbf{81.1}} \\%&{0} \\

\bottomrule
\end{tabular}}
\end{center}
\vspace{-2mm}
\end{table*}