Manuscript Offprint

arXiv:2610.39162

A Novel Approach to Evaluating Evaluation Metrics for Multi-Output Structured Prediction

Akshay Vyas, Angelo Pimienta, Nicholas Ruozzi

Abstract

In multi-output structured prediction tasks, while only one ground truth label may be provided in the training data, multiple equally valid outputs may be possible, making reliable evaluation a persistent challenge. We postulate that human evaluators implicitly use task-specific invariants, e.g., object boundaries in colorized images or named entities in translations, to judge if an output is acceptable. Under this assumption, we introduce a notion of approximate task-specific invariants and use them as diagnostic tools to evaluate a variety of existing metrics for vision and language tasks. We use these task invariants as part of a framework to systematically test metric reliability by encouraging domain-relevant invariants in model outputs via an augmented loss function. In our experiments, we observe that enforcing invariants with an augmented loss yields substantial improvements in popular distributional metrics while more traditional metrics change only marginally. Through this invariants-driven evaluation, we expose where standard metrics fail to detect meaningful differences, and we highlight the conditions under which distributional metrics succeed or still fall short.

Code —

https://github.com/akshay25vyas/invariants-metric-eval

Proceedings version —

https://doi.org/10.1609/aaai.v40i31.39808

Introduction

Machine learning models trained for multi-output vision and language tasks often face an evaluation paradox: there may exist many plausible outputs for a given input, e.g., different colorizations of a photo or multiple valid translations of a sentence, yet traditional evaluation metrics assume a single ground-truth output. In vision, pixel-level metrics such as mean squared error (MSE) or peak signal-to-noise ratio (PSNR) treat any deviation from the single ground-truth image as an error, even if the deviation is a valid alternative, e.g., a shirt colored blue instead of green. These metrics can also be poor proxies for perceptual quality, e.g., an image can have low MSE yet look unnatural to humans. In language, n-gram overlap metrics such as Bilingual Evaluation Understudy Score (BLEU), while standard, can be brittle: a

translation that uses synonyms or different phrasing will get a low BLEU score despite conveying the same meaning.

Overall, when trained models output one of many acceptable answers, the above metrics can often over penalize legitimate variation while under penalizing more human perceptible errors, which can lead trained models to produce labels that may have low error with respect to the chosen metric but be easily identified as poor by human evaluators.

Recently, distributional/learned metrics have emerged as attempts to address the above issues. Distributional metrics compare the distribution of labels produced by a given model to the distribution of the ground truth labels. For images, the Fréchet Inception Distance (FID) (Heusel et al. 2017) computes the Wasserstein-2 distance between multivariate normal distributions fit to model generated labels and ground-truth labels in a feature space extracted from the Inception network. As only distributions are considered, these metrics allow for diversity beyond pixel agreement. For text, BERTScore leverages pre-trained language model embeddings to measure semantic similarity between the model-generated text and ground-truth reference. Distributional metrics can better handle paraphrasing or varying image styles, allowing them to be less influenced by superficial differences between the predicted and the ground-truth labels. However, an open question remains: Do these distributional metrics capture the variations that human evaluators expect, or do they have blind spots of their own? For example, if a translation preserves meaning but shifts tone, will Fréchet BERT Distance (FBD) register the change? Does FID drop when an image's colors violate object boundaries, or could it be fooled by overall color statistics? These questions highlight the need for a systematic study of metric sensitivity to meaningful variations in output.

The main postulate in this work is that human evaluators implicitly or explicitly apply domain or task invariants when judging neural network outputs. Invariants are properties that should remain (approximately) unchanged under valid transformations of the output. For example, a human evaluator for the image colorization task might expect that the addition of color does not alter the image's structural details, e.g., the model colorized image should respect the same object boundaries and depth cues as the original ground-truth color image. If neural network colorization causes "color bleeding" across object edges, humans might immediately

Copyright © 2026, Association for the Advancement of Artificial Intelligence (www.aaai.org). All rights reserved.

flag the colorization as incorrect, even if the colors appear plausible overall. Similarly, when assessing machine translation, bilingual speakers might expect the translation to preserve named entities and sentiment, e.g., a translated sentence that flips the sentiment or mistranslates a proper name violates one of these invariants. In image captioning, an accurate caption should reflect the image's content and relationships, e.g., who is doing what to whom. So, properties like semantic roles and scene relationships act as invariants, e.g., if the image shows a cat on a couch, predicted captions should maintain that subject-object relation.

While the above invariants are natural for their respective domains, many existing metrics do not explicitly account for these kinds of invariants. Further, existing work has observed that neural networks trained for structured prediction tasks do not necessarily produce predictions that enforce the task constraints, e.g., neural networks trained to predict shortest paths need not produce a connected path, a natural invariant for path problems (Ahmed et al. 2022). We observe the same difficulties for the multi-output structured prediction tasks described above: task invariants are not automatically preserved through neural network training (even when training with large data sets). However, as violation of these invariants can result in poor-quality labels that are readily identified as such by human evaluators, our aim is to understand to what extent natural task invariants are captured by existing metrics. We propose a framework to evaluate the evaluation metrics themselves using approximate invariants as a probe. Rather than artificially introducing invariant violations, we systematically compare outputs from standard baseline models (which can significantly violate the task-specific invariants) with invariant-regularized models explicitly trained to respect approximate invariants, e.g., segmentation consistency in image colorization, named entities in translation, etc. We consider three modeling tasks: image colorization, machine translation, and image captioning. For each task, we first define one or more approximate task invariants (see Table 1 for a list of possible invariants). We then train models that are both invariant aware, where we enforce the invariants with an auxiliary loss function, and invariant agnostic. We evaluate the different models via a battery of metrics including standard metrics and distributional metrics and observe how the performance changes when the invariant is or is not enforced. Our contributions are as follows.

  • We introduce a novel evaluation framework that uses approximate task invariants as a diagnostic lens for evaluating metrics that provides an alternative to human evaluators.
  • We apply our framework across vision and language domains (image colorization, image captioning, and machine translation) with distinct invariants and evaluation challenges. This comprehensive study demonstrates the versatility of our approach and provides insights into metrics ranging from pixel-level (MSE) and token-level (BLEU) to distributional (FID) and embedding-based (BERTScore).
  • Our experiments show that distributional metrics, e.g.,
Main TaskInvariant Task(s)
Image ColorizationImage Segmentation, Depth Estimation, Edge Detection
Machine Translation (NMT)Named Entity Recognition (NER), Sentiment Analysis, Paraphrase Detection
Image CaptioningSemantic Role Labeling (SRL), Scene Graph Consistency, Named Entity Recognition (NER)
Text SummarizationNamed Entity Recognition (NER), Sentiment Analysis, Coreference Resolution
Video PredictionOptical Flow Estimation, Object Tracking, Action Recognition
Natural Language InferenceParaphrase detection, Sentiment Analysis

Table 1: Tasks and corresponding invariants. BOLD tasks are considered in this work.

FID, FBD, etc., are generally more sensitive to invariant-related differences, and enforcing invariants in outputs can lead to significant performance gains (15% – 30%) in sensitive metrics. In contrast, we find that traditional metrics, e.g., BLEU, PSNR, etc., are largely unchanged when training with the selected invariant losses.

References (36)

  • Semantic Probabilistic Layers for Neuro-symbolic Learning
  • SPICE: Semantic Propositional Image Caption Evaluation
  • METEOR: An Automatic Metric for MT Evaluation with Improved Correlation with Human Judgments
  • Wit3: Web Inventory of Transcribed and Translated Talks
  • J.; and Forsyth, D. 2020
  • Group Equivariant Convolutional Networks
  • Imagenet: A Large-scale Hierarchical Image Database
  • Bi-SimCut: A Simple Strategy for Boosting Neural Machine Translation
  • Measuring Colorfulness in Natural Images
  • GANs Trained by a Two Time-scale Update Rule Converge to a Local Nash Equilibrium
  • Rethinking FID: Towards a Better Evaluation Metric for Image Generation
  • ColorFormer: Image Colorization via Color Memory Assisted Hybrid-attention Transformer
  • DDcolor: Towards photo-realistic image colorization via dual decoders
  • Microsoft COCO: Common Objects in Context
  • Stanford Neural Machine Translation Systems for Spoken Language Domains
  • Cross-Stitch Networks for Multi-Task Learning
  • Clipcap: Clip Prefix for Image Captioning (opens arXiv in a new tab)
  • A.; Wang, L.; Cervantes, C. M.; Caicedo, J. C.; Hockenmaier, J.; and Lazebnik, S. 2015
  • Smallcap: Lightweight Image Captioning Prompted with Retrieval Augmentation
  • Towards Robust Monocular Depth Estimation: Mixing Datasets for Zero-shot Cross-dataset Transfer
  • COMET: A Neural Framework for MT Evaluation
  • An Overview of Multi-Task Learning in Deep Neural Networks
  • Generating Semantically Precise Scene Graphs from Textual Descriptions for Improved Image Retrieval
  • CIDEr: Consensus-based Image Description Evaluation
  • ChromaGAN: Adversarial Picture Colorization with Semantic Class Distribution
  • HuggingFace's Transformers: State-of-the-art Natural Language Processing
  • E.; Garbin, S. J.; Turmukhambetov, D.; and Brostow, G. J. 2017
  • Assessing Dialogue Systems with Distribution Distances
  • BERT, mBERT, or BiBERT? A Study on Contextualized Embeddings for Neural Machine Translation
  • Side Adapter Network for Open-vocabulary Semantic Segmentation
  • The Unreasonable Effectiveness of Deep Features as a Perceptual Metric
  • BERTScore: Evaluating text generation with BERT. In International Conference on Learning Representations (ICLR)
  • Bias and Generalization in Deep Generative Models: An Empirical Study
  • Scene Parsing through ADE20K Dataset
  • Semantic Understanding of Scenes Through the ADE20k Dataset
  • Toward Multimodal Image-to-image Translation