- Rating
- 4
- Clarity
- 3
- Confidence
- 3
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
This paper studies supervised fine-tuning of language models with pointwise constraints. Instead of enforcing constraints only in expectation, the proposed method assigns sample-wise constraints and optimizes them using an augmented Lagrangian formulation. The paper further introduces a relaxed variant to handle overly restrictive constraints and outliers. Experiments are conducted on safety refusal, tool-calling behavior selection, and length-aware re-ranking.
Strengths and weaknesses
Strengths:
The paper addresses an important limitation of average-constrained alignment: satisfying a constraint in expectation can still leave large violations on hard or underrepresented samples. The pointwise formulation is intuitive and well motivated, especially for safety and tool-use settings where tail failures matter. The method is presented in a principled way through sample-wise dual variables, augmented Lagrangian optimization, and learned constraint relaxation. The empirical results suggest that the approach reduces tail constraint violations and often improves the objective-constraint trade-off.
Weaknesses:
- The paper could better clarify how the proposed pointwise augmented-Lagrangian method differs, in practice, from simpler tail-focused or hard-example optimization approaches. Since the empirical algorithm maintains sample-wise multipliers and gives stronger updates to samples with larger constraint violations, it would be useful to compare, where appropriate, with CVaR-style objectives, top-k violation penalties, or hard-example reweighting. DRO or group-DRO baselines may also be relevant when meaningful groups or uncertainty sets can be defined. I view these as suggested comparisons rather than strictly required baselines, but they would help isolate the benefit of the proposed dual formulation.
- A more fundamental limitation is that the method enforces empirical per-sample constraints on the training set, while the motivation is closer to deployment-level pointwise reliability. It is not fully clear when sample-wise multipliers learned from the training data will generalize to unseen hard cases, especially under distribution shift. Relatedly, maintaining one multiplier per sample seems manageable in the reported experiments, but its scalability to very large SFT datasets, streaming data, distributed training, or multiple simultaneous constraints is not fully explored.
Questions
- Can the authors clarify how the method differs empirically from simpler tail-focused methods, such as CVaR-style objectives, top-k violation penalties, or hard-example reweighting?
- Under what conditions should empirical per-sample constraints generalize to unseen or distribution-shifted samples?
- How does the method scale to very large datasets or multiple constraints that require separate sample-wise multipliers?
Limitations
The paper partially addresses limitations through the relaxed constraint variant, but it should discuss more clearly when empirical per-sample constraints generalize to unseen or distribution-shifted samples, and how the method scales to very large datasets, streaming data, distributed training, or multiple simultaneous constraints.
Paper formatting concerns
No major formatting or anonymity concerns noticed.
We thank the reviewer for their feedback, particularly for highlighting the need to better distinguish our method from tail-focused alternatives and clarify its generalization. We hope the responses below address these concerns.
1) Pointwise constraints versus tail-reduction methods
Addressing Weakness #1 and Question #1
The key distinction is that the Augmented Lagrangian method solves the pointwise-constrained learning problem, whereas tail-focused objectives aim to reduce the upper tail of the loss distribution. The constrained method dynamically adjusts the sample weights to bring all constraint losses below the prescribed threshold while obtaining the best possible value of the primary objective. In contrast, a generic tail-focused objective may continue emphasizing samples even after their losses have reached an acceptable level. This can further improve constraints at the expense of the objective.
To demonstrate this distinction empirically, we include the suggested comparisons with the tail-focused methods TERM [1] and Top-k [2]. TERM smoothly reweights samples so that larger losses receive greater emphasis, whereas Top-k optimizes only the (k) largest losses in each minibatch update. These are two well-established approaches that we identified in the tail-focused optimization literature. We can also evaluate any additional baseline the reviewer considers relevant.
Tables [2]-[4] (see experimental results at the end) show that for the reranker task these methods can achieve tails smaller than those of the pointwise method for the constraint losses. However, this additional tail reduction comes at the cost of a worse performance in length. In particular, all evaluated configurations of our method lie on the MRR@10--Len@10 Pareto frontier, whereas the top-k configurations and all but the most aggressive TERM configuration are dominated.
In addition, tail objectives do not address the trade-off between the multiple constraint losses per sample and their varying difficulty. Table [1] shows that for the tool calling task using top-k achieves similar CVaR to our method for dispreferred outputs but significantly worse (higher) CVaR for preferred ones in function calling.
For the tasks considered in this work, we consider that there are no clear or meaningful groups that can be defined a priori, which makes group-DRO difficult to apply. This also highlights an advantage of our method. Rather than requiring predefined group labels, it automatically learns which samples are harder to satisfy through the dual variables.
Beyond the conceptual and empirical differences discussed above, we would also like to emphasize that the Augmented Lagrangian method is simple to implement. It requires only associating each training sample with a dual variable and making a minor modification to the loss computation to incorporate the corresponding weighted constraint term and dual-variable update.
We strongly agree with this observation. Because our primary goal was to address the shortcomings of expected-value constraints, the original evaluation focused mainly on reducing tail violations and improving uniformity across samples. We therefore appreciate the reviewer suggesting these comparisons, as they help us better emphasize that constraints provide a principled mechanism for controlling trade-offs among multiple requirements.
2) Generalization
Addressing: Weakness #2 and Question #2
We distinguish generalization to unseen samples from robustness under distribution shift. All results in the main text are evaluated on held-out test sets, showing that reductions in tail violations extend beyond the training samples. Appendix E directly compares the training and test distributions. Figures 5–9 show that improvements in the distribution shapes and tails are preserved on unseen test data. We therefore believe the manuscript provides substantial empirical evidence of generalization.
We agree, however, that the manuscript does not formally characterize when such generalization occurs. Generalization guarantees remain challenging even for standard ERM because classical bounds are often vacuous for highly expressive deep-learning models. Accordingly, recent work commonly evaluates generalization through held-out performance, as we do here. Nevertheless, extending the theory to the proposed constrained-learning setting would strengthen the work, and we are actively studying this question.
Regarding distribution shift, our experiments focus on relatively small language models, ranging from 0.5B to 7B parameters, which are commonly used for efficient and reliable performance on narrow, in-domain tasks such as reranking and tool calling. We agree that extending pointwise reliability guarantees to unseen distributions or datasets presents an additional challenge. We consider this an important and promising direction for future work, but it lies beyond the intended scope of the current work, which focuses on improving reliability within a specified task and data distribution.
3) Scalability
Addressing: Weakness #2 and Question #3
With respect to memory requirements, Appendix F.3 discusses how the dual variables can be stored outside GPU memory and loaded together with each minibatch. Their storage cost is small relative to that of the samples themselves. For example, storing the input IDs, output IDs, and attention mask for a context length of 1024 requires approximately 12 KB, whereas a single scalar dual variable requires 4 bytes. With (m) constraints per sample (4m) bytes still remains small compared with the storage required for the sample data.
With respect to computational cost, Appendix F.4 reports the time per epoch for the Augmented Lagrangian method and the standard baselines, with no noticeable overhead observed in our experiments. We expect the additional cost to remain limited for larger datasets and multiple constraints, since the method only requires a minor modification to the loss computation.
Distributed training should impose no extra concern. Each dual variable is associated with a particular sample and can be stored and retrieved together with that sample. Therefore, workers do not need to exchange the multipliers; only the standard synchronization of the model gradients is required.
For streaming data, a sample-wise multiplier has limited utility because each sample may be observed only once. An interesting extension for this setting is to use a parametric dual model that predicts the dual variable for a sample. It could learn to assign larger multipliers to samples that are difficult to satisfy and generalize to unseen samples. We consider parametric dual formulations as an interesting direction for future work.
Experimental Results:
All results are reported on the test set. CVaR denotes CVaR(_{95}) of the constraint losses, and (\lambda_0) is the scaling factor applied to the tail-aware objective. Due to computational limitations, we conduct these comparisons only on the reranking and tool-calling tasks. Additional implementation and experimental details will be included in the revised manuscript.
1. Tool Calling
We ran a grid search across temperature (1,2,4), k (2,4,8) and the fixed penalty coefficient λ₀ (0.1, 1, 10, 100). In the table we include the best performing result with average and std computed across 3 seeds.
Table 1
2. Reranking
For the top-(k) baseline, we set (k=4), corresponding to approximately (10%) of the batch size. For TERM, we evaluate (t\in{1,10,100}) and report the results for (t=100), which achieved the strongest reduction in tail losses. For (\lambda_0), we first perform a logarithmic sweep over a broad range of values. We then conduct a finer search around the region containing the desired operating point and report the resulting configurations. Tables:
Table 2: Ours
Table 3: Top-k (k=4)
Table 4: Tilted (t=100)
References:
[1] Li, T., et al. (2020). Tilted empirical risk minimization.
[2] Fan, Y., et al. (2017). Learning with average top-k loss.